Skip to content

Commit b965ee0

Browse files
committed
fix a listpack decode bug
1 parent 887c2ca commit b965ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/listpack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (dec *Decoder) readListPackEntry(buf []byte, cursor *int) ([]byte, uint32,
108108
if err != nil {
109109
return nil, 0, err
110110
}
111-
strLen := int(binary.BigEndian.Uint32(lenBytes))
111+
strLen := int(binary.LittleEndian.Uint32(lenBytes))
112112
result, err := readBytes(buf, cursor, strLen)
113113
if err != nil {
114114
return nil, 0, err

0 commit comments

Comments
 (0)