Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
There are sanity checks for packet size when deserializing a packet. One place has the inclusion: len >= packetLen. ** It rejects to deserialize the bytes that are exactly sized jute.maxbuffer. It's confusing. This check should use ">" so the maxbuffer length packet can still be deserialized, like the other checks.
if (len < 0 || len >= packetLen) { throw new IOException("Packet len " + len + " is out of range!"); }
if (len < 0 || len > BinaryInputArchive.maxBuffer) { throw new IOException("Len error " + len); }