commit
1ec50360f3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue