szn

Bug 149 — client/client.zig — recvPacket doesn’t validate msg_type

149. client/client.zig — recvPacket doesn’t validate msg_type

File: src/client/client.zig:88 Severity: LOW Status: ✅ FIXED — added MessageType.fromByte() validation.

.msg_type = hdr[4],

The raw byte hdr[4] is stored directly as msg_type without validating it’s a known MessageType enum value. Downstream code that switches on this may hit unexpected branches if a malformed packet arrives.