Status: New
Owner: ----
Labels: Type-Patch

New issue 456 by [email protected]: Patch for /trunk/src/google/protobuf/io/coded_stream_inl.h
http://code.google.com/p/protobuf/issues/detail?id=456

string_as_array() can return NULL, so the result should be checked before passing it to memcpy.

buffer can still be "empty" (causing string_as_array() to return NULL) after the call to STLStringResizeUninitialized() (seen in VS2008).

Attachments:
        coded_stream_inl.h.patch  431 bytes

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to