Skip to content

Commit

Permalink
Merge pull request #1030 from marcelofontenele/ArraydimensionsExceeded
Browse files Browse the repository at this point in the history
fix: fixed error System.OverflowException: Array dimensions exceeded supported range.
  • Loading branch information
drewnoakes authored Sep 5, 2022
2 parents 549e512 + 6c54ae7 commit 40631c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetMQ/Core/Transports/V1Decoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private DecodeResult EightByteSizeReady()
long payloadLength = m_tmpbuf.GetLong(Endian, 0);

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

// Message size must not exceed the maximum allowed size.
Expand Down

0 comments on commit 40631c0

Please sign in to comment.