Skip to content

Commit 6c54ae7

Browse files
fix: fixed error System.OverflowException: Array dimensions exceeded supported range.
1 parent 549e512 commit 6c54ae7

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)