diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-02-26 01:55:39 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-02-26 01:55:39 -0800 |
commit | d351981f9e4f9ef5184e35e98ad14df305c91def (patch) | |
tree | 5deaeef0e49637fa2c35dd853a7598f0b59f98ca /pbstream.h | |
parent | e67f5d5f02a6b5529d2a1a27b7e729bce853f337 (diff) |
Change to a fixed stack size.
Proto2 only allows a nesting depth of 64, so we follow suit.
Diffstat (limited to 'pbstream.h')
-rw-r--r-- | pbstream.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -132,6 +132,9 @@ typedef enum pbstream_status { // Encountered a "group" on the wire (deprecated and unsupported). PBSTREAM_ERROR_GROUP = -3, + // Input was nested more than 64 deep. + PBSTREAM_ERROR_STACK_OVERFLOW = -4, + /** NONFATAL ERRORS: the input was invalid, but we can continue if desired. */ // A value was encountered that was not defined in the .proto file. The |