From d351981f9e4f9ef5184e35e98ad14df305c91def Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 26 Feb 2009 01:55:39 -0800 Subject: Change to a fixed stack size. Proto2 only allows a nesting depth of 64, so we follow suit. --- pbstream.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pbstream.h') 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 -- cgit v1.2.3