Packet.deserialize requires exact buffer length — unsafe for streamsPacket.deserialize requires exact buffer length — unsafe for streamsFile: src/server/protocol.zig:82–93
Severity: LOW
Status: ✅ FIXED — Allowed Packet.deserialize to parse input buffers with trailing data by slicing the data block up to the packet length.
deserialize returns SizeMismatch unless len == buf.len exactly, so it cannot parse a concatenated stream of packets. The three streaming readers (MessageReader, Client.recvPacket, and the inline parser in main.zig:448–496) therefore re-implement framing instead of calling deserialize. Calling deserialize on a raw socket buffer is a misuse trap.