From eeca9e5e756d3bbc5f99f161b2006e3146e17c10 Mon Sep 17 00:00:00 2001 From: John Lee Date: Sat, 12 Nov 2022 09:26:18 -0500 Subject: [PATCH 1/2] Bump buildnumber.dat --- buildnumber.dat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildnumber.dat b/buildnumber.dat index 0cfbf08886..00750edc07 100644 --- a/buildnumber.dat +++ b/buildnumber.dat @@ -1 +1 @@ -2 +3 From 8151c81c1c9d49b0ccb289844203735320ad61f5 Mon Sep 17 00:00:00 2001 From: chris erway Date: Sat, 12 Nov 2022 09:35:54 -0500 Subject: [PATCH 2/2] check for large Topics length --- network/topics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/topics.go b/network/topics.go index f52dede874..d9d05dab93 100644 --- a/network/topics.go +++ b/network/topics.go @@ -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