mirror of
https://github.com/soypat/lneto.git
synced 2026-08-22 15:39:06 +00:00
add IP/TCP/HTTP fuzzing and fixes to panics found
This commit is contained in:
+1
-1
@@ -210,7 +210,7 @@ func (ifrm Frame) ValidateSize(v *lneto.Validator) {
|
||||
if int(tl) > len(ifrm.RawData()) {
|
||||
v.AddError(errShort)
|
||||
}
|
||||
if ihl < 5 {
|
||||
if ihl < 5 || uint16(ihl)*4 > tl {
|
||||
v.AddError(errBadIHL)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user