We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 287a324 commit f0aa336Copy full SHA for f0aa336
fuzzing/header/fuzz.go
@@ -48,6 +48,11 @@ func Fuzz(data []byte) int {
48
return 0
49
}
50
51
+ // We always use a 2-byte encoding for the Length field in Long Header packets.
52
+ // Serializing the header will fail when using a higher value.
53
+ if hdr.IsLongHeader && hdr.Length > 16383 {
54
+ return 1
55
+ }
56
b := &bytes.Buffer{}
57
if err := extHdr.Write(b, version); err != nil {
58
// We are able to parse packets with connection IDs longer than 20 bytes,
0 commit comments