Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 211 by [email protected]: common.cc calls "abort" on FATAL
messages
http://code.google.com/p/protobuf/issues/detail?id=211
In stubs/common.cc there is a call to abort if a FATAL message is ever
recorded. This makes the code unsafe to use on a production server since it
could at any time abort the entire process.
libprotobuf FATAL /usr/local/include/google/protobuf/repeated_field.h:637]
CHECK failed: (index) < (size()):
Aborted (core dumped)
I think this is coming from a call to a repeated field with an index
greater than the number of items in that field. While I agree that would be
an error it should not call abort. Throwing an exception would be more
appropriate (and recoverable)
--
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.