summaryrefslogtreecommitdiff
path: root/pbstream.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-02-26 01:55:39 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-02-26 01:55:39 -0800
commitd351981f9e4f9ef5184e35e98ad14df305c91def (patch)
tree5deaeef0e49637fa2c35dd853a7598f0b59f98ca /pbstream.h
parente67f5d5f02a6b5529d2a1a27b7e729bce853f337 (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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pbstream.h b/pbstream.h
index 89e7329..d564970 100644
--- a/pbstream.h
+++ b/pbstream.h
@@ -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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback