mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 13:02:13 +01:00
go: Fix length mask error in []byte packing.
This commit is contained in:
parent
8f35dbc306
commit
31a49db68b
@ -174,7 +174,7 @@ func unpack(reader io.Reader, reflected bool) (v reflect.Value, n int, err error
|
||||
}
|
||||
nbytesread += n
|
||||
} else if c >= 0xa0 && c <= 0xbf {
|
||||
data := make([]byte, c&0xf)
|
||||
data := make([]byte, c&0x1f)
|
||||
n, e := reader.Read(data)
|
||||
nbytesread += n
|
||||
if e != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user