Skip to content

Commit

Permalink
Merge pull request #4811 from Algo-devops-service/relstable3.11.3-rem…
Browse files Browse the repository at this point in the history
…erge

mergeback: Relstable3.11.3 remerge
  • Loading branch information
algojohnlee authored Nov 17, 2022
2 parents 6b85209 + 31e8c03 commit e618fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func UnmarshallTopics(buffer []byte) (ts Topics, err error) {

// read the data length
dataLen, nr := binary.Uvarint(buffer[idx:])
if nr <= 0 {
if nr <= 0 || dataLen > maxMessageLength {
return nil, fmt.Errorf("UnmarshallTopics: could not read the data length")
}
idx += nr
Expand Down

0 comments on commit e618fbf

Please sign in to comment.