This commit is contained in:
Miek Gieben 2015-07-27 20:57:02 +01:00
parent c13d4ee9cd
commit fcf516f280
1 changed files with 4 additions and 0 deletions

4
msg.go
View File

@ -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)