A malformed frame with length 0 for any single-byte tag (TagVersion, TagCurrentLayer, TagTargetLayer, TagIntent) or fewer than 2 bytes for TagThreatScore caused a runtime panic (index out of range) on untrusted input. Added len(tagValue) bounds checks in ReadAndVerify before each tagValue[0] and Uint16 access to eliminate the panic path. Co-Authored-By: Charon <charon@lethean.io> |
||
|---|---|---|
| .. | ||
| packet.go | ||
| packet_test.go | ||
| reader.go | ||
| reader_test.go | ||