Skip to content

Commit

Permalink
fix a listpack decode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HDT3213 committed Sep 17, 2023
1 parent 887c2ca commit b965ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/listpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (dec *Decoder) readListPackEntry(buf []byte, cursor *int) ([]byte, uint32,
if err != nil {
return nil, 0, err
}
strLen := int(binary.BigEndian.Uint32(lenBytes))
strLen := int(binary.LittleEndian.Uint32(lenBytes))
result, err := readBytes(buf, cursor, strLen)
if err != nil {
return nil, 0, err
Expand Down

0 comments on commit b965ee0

Please sign in to comment.