diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-01-19 12:35:22 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-01-19 12:35:22 -0800 |
commit | 87de804b63422c9f54ded58cc56ca9df38d162d6 (patch) | |
tree | a4a364d77a7d91dcb92e919b6c802874251bb486 /src/upb_sink.h | |
parent | dda1499a0eab41165c82277e630dd7050145448f (diff) |
Make sources responsible for respecting UPB_MAX_NESTING.
Diffstat (limited to 'src/upb_sink.h')
-rw-r--r-- | src/upb_sink.h | 3 |
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, |