Closed SOF3 closed 4 years ago
If all bytes of the slice have MSB set, the library assumes the last slice does not have the MSB set, and silently truncates.
Furthermore, if the value of the varint overflows, it silently drops the overflowing bits.
These are malformed representations and should have error reported.
thank you, I've seen the issue! I will take a look when I have a bit of time.
I hope I will soon get a chance to fix this.
If all bytes of the slice have MSB set, the library assumes the last slice does not have the MSB set, and silently truncates.
Furthermore, if the value of the varint overflows, it silently drops the overflowing bits.
These are malformed representations and should have error reported.