From 87de804b63422c9f54ded58cc56ca9df38d162d6 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 19 Jan 2010 12:35:22 -0800 Subject: Make sources responsible for respecting UPB_MAX_NESTING. --- src/upb_sink.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/upb_sink.h') 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, -- cgit v1.2.3