CodedIpnut.skipRawBytes() incorrectly updates totalBytesRetired when going outside of its buffer.
GoogleCodeExporter opened this issue · comments
As a result readTag() produces arbitrary result instead of the end tag (0),
corrupting the rest of the data.
Please see the attached patch with a test case and a fix.
Original issue reported on code.google.com by Max.M.La...@gmail.com
on 21 Dec 2012 at 3:35
Attachments:
Thanks Max.
I applied the changes from upstream.
See
http://code.google.com/p/protobuf/source/diff?spec=svn349&r=349&format=side&path
=/trunk/java/src/main/java/com/google/protobuf/CodedInputStream.java
Fixed @ rev 1587
Original comment by david.yu...@gmail.com
on 22 Dec 2012 at 5:31
- Changed state: Fixed
Issue 147 has been merged into this issue.
Original comment by david.yu...@gmail.com
on 11 Sep 2013 at 6:28