fuzzzz
This commit is contained in:
parent
c13d4ee9cd
commit
fcf516f280
4
msg.go
4
msg.go
|
@ -1181,6 +1181,10 @@ func unpackStructValue(val reflect.Value, msg []byte, off int) (off1 int, err er
|
||||||
length := 0
|
length := 0
|
||||||
window := 0
|
window := 0
|
||||||
for off+2 < lenrd {
|
for off+2 < lenrd {
|
||||||
|
if off+2 > lenmsg {
|
||||||
|
return lenmsg, &Error{err: "overflow unpacking nsecx"}
|
||||||
|
}
|
||||||
|
|
||||||
window = int(msg[off])
|
window = int(msg[off])
|
||||||
length = int(msg[off+1])
|
length = int(msg[off+1])
|
||||||
//println("off, windows, length, end", off, window, length, endrr)
|
//println("off, windows, length, end", off, window, length, endrr)
|
||||||
|
|
Loading…
Reference in New Issue