fairyhawk / protostuff

Automatically exported from code.google.com/p/protostuff
Apache License 2.0
0 stars 0 forks source link

CodedIpnut.skipRawBytes() incorrectly updates totalBytesRetired when going outside of its buffer. #138

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Issue 147 has been merged into this issue.

Original comment by david.yu...@gmail.com on 11 Sep 2013 at 6:28