open-dis-java
open-dis-java copied to clipboard
Unmarshaling enters infinite loop if the length field is zero.
When sending PDU's constructed in open-dis python, the length field is zero. During unmarshalling in open-dis-java, an infinite loop is entered because the buffer read pointer is never advanced to the end of the first pdu in the UDP packet.
A pdu with zero in the length field should be detected as invalid and handled accordingly.
Thank-you for the report @kastork . That's a great test case that uses the different language implementations.
Would you be interested in submitting a pull request to fix this?
Yes, could be a while though.