Skip to content

Commit 40631c0

Browse files
authored
Merge pull request #1030 from marcelofontenele/ArraydimensionsExceeded
fix: fixed error System.OverflowException: Array dimensions exceeded supported range.
2 parents 549e512 + 6c54ae7 commit 40631c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NetMQ/Core/Transports/V1Decoder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private DecodeResult EightByteSizeReady()
124124
long payloadLength = m_tmpbuf.GetLong(Endian, 0);
125125

126126
// There has to be at least one byte (the flags) in the message).
127-
if (payloadLength == 0)
127+
if (payloadLength <= 0)
128128
return DecodeResult.Error;
129129

130130
// Message size must not exceed the maximum allowed size.

0 commit comments

Comments
 (0)