Add fuzz tests and fix PollReply bounds check

This commit is contained in:
Ian Gulliver
2026-01-28 12:34:26 -08:00
parent e02ba0cd5e
commit 0a3e9b1daf
2 changed files with 160 additions and 1 deletions

View File

@@ -211,7 +211,7 @@ func parsePollPacket(data []byte) (*PollPacket, error) {
}
func parsePollReplyPacket(data []byte) (*PollReplyPacket, error) {
if len(data) < 207 {
if len(data) < 214 {
return nil, ErrPacketTooShort
}