From 65ff13bd4547107c77e936bb63401928b40e63a0 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 30 Mar 2021 07:50:01 -0700 Subject: [PATCH] chore: update deps And rebuild protobuf definitions. --- p2p/security/noise/pb/payload.pb.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/p2p/security/noise/pb/payload.pb.go b/p2p/security/noise/pb/payload.pb.go index 7b912a7d..ffb29c3c 100644 --- a/p2p/security/noise/pb/payload.pb.go +++ b/p2p/security/noise/pb/payload.pb.go @@ -321,10 +321,7 @@ func (m *NoiseHandshakePayload) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthPayload - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPayload } if (iNdEx + skippy) > l {