summaryrefslogtreecommitdiff
path: root/src/upb_sink.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-01-19 12:35:22 -0800
committerJoshua Haberman <joshua@reverberate.org>2010-01-19 12:35:22 -0800
commit87de804b63422c9f54ded58cc56ca9df38d162d6 (patch)
treea4a364d77a7d91dcb92e919b6c802874251bb486 /src/upb_sink.h
parentdda1499a0eab41165c82277e630dd7050145448f (diff)
Make sources responsible for respecting UPB_MAX_NESTING.
Diffstat (limited to 'src/upb_sink.h')
-rw-r--r--src/upb_sink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/upb_sink.h b/src/upb_sink.h
index 2b8369e..5dc5b52 100644
--- a/src/upb_sink.h
+++ b/src/upb_sink.h
@@ -85,7 +85,8 @@ typedef upb_sink_status (*upb_str_cb)(upb_sink *s, upb_fielddef *f,
upb_status *status);
// The start and end callbacks are called when a submessage begins and ends,
-// respectively.
+// respectively. The caller is responsible for ensuring that the nesting
+// level never exceeds UPB_MAX_NESTING.
typedef upb_sink_status (*upb_start_cb)(upb_sink *s, upb_fielddef *f,
upb_status *status);
typedef upb_sink_status (*upb_end_cb)(upb_sink *s, upb_fielddef *f,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback