kingshard icon indicating copy to clipboard operation
kingshard copied to clipboard

if first packet and it is value is 0xfe, it maybe EOF_Packet

Open codeloverforever opened this issue 6 years ago • 0 comments

If the first byte of a packet is a length-encoded integer and its byte value is 0xfe, you must check the length of the packet to verify that it has enough space for a 8-byte integer.

If not, it may be an EOF_Packet instead. i think it should be handled as an exceptional in function LengthEncodedInt

codeloverforever avatar Feb 21 '19 07:02 codeloverforever