mirror of
https://github.com/miekg/dns.git
synced 2025-10-17 21:01:00 +02:00
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
|
||||
window := 0
|
||||
for off+2 < lenrd {
|
||||
if off+2 > lenmsg {
|
||||
return lenmsg, &Error{err: "overflow unpacking nsecx"}
|
||||
}
|
||||
|
||||
window = int(msg[off])
|
||||
length = int(msg[off+1])
|
||||
//println("off, windows, length, end", off, window, length, endrr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user