Re: [protobuf] Handling parse errors

2015-01-23 Thread 'Feng Xiao' via Protocol Buffers
On Fri, Jan 23, 2015 at 4:45 AM, Paweł Zatorski pawelzatorsk...@gmail.com wrote: Hi, In my project i am using protocol buffers in two modes: text and binary. Sometimes it happend that same data once serialized in text format is deserialized correctly and when using binary format parsing

[protobuf] getting crash from MessageLite::AppendPartialToString. Potential overflow problem all around the google protobuf code.

2015-01-23 Thread Jana Baran
Potential overflow problem occurs all around the protobuf code. For example see message_lite.cc bool MessageLite::AppendPartialToString(string* output) const { int old_size = output-size(); int byte_size = ByteSize(); STLStringResizeUninitialized(output, old_size + byte_size); uint8*