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
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*