Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/rel/stable' into relstable3.11.3…
Browse files Browse the repository at this point in the history
…-remerge
  • Loading branch information
Algo-devops-service committed Nov 17, 2022
2 parents 6b85209 + 6869ccb commit 31e8c03
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 31e8c03

Please sign in to comment.