Skip to content

Commit

Permalink
Fix-18312-18077 (matrixorigin#18396)
Browse files Browse the repository at this point in the history
1. Fix panic when unmarshal `RelData`

Approved by: @XuPeng-SH
  • Loading branch information
triump2020 authored Aug 29, 2024
1 parent 720364f commit c880770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vm/engine/disttae/relation_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (relData *blockListRelData) MarshalBinaryWithBuffer(w *bytes.Buffer) (err e
if err = relData.tombstones.MarshalBinaryWithBuffer(w); err != nil {
return
}
tombstoneLen = uint32(w.Len() - offset)
tombstoneLen = uint32(w.Len() - offset - 4)
buf := w.Bytes()
copy(buf[offset:], types.EncodeUint32(&tombstoneLen))
}
Expand Down

0 comments on commit c880770

Please sign in to comment.