diff options
author | Josh Haberman <jhaberman@gmail.com> | 2016-12-14 16:39:04 +0000 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2016-12-14 16:39:04 +0000 |
commit | 6cccfe16493c9c88ea198ca37af915179ccf7eaf (patch) | |
tree | 30e4ed2ea864c824fd137d7f783fd51ef66ee2bb /upb/sink.c | |
parent | ce1f63fde226f367c1ce2172a416d9b9f57c297e (diff) |
Addressed PR comments.
Diffstat (limited to 'upb/sink.c')
-rw-r--r-- | upb/sink.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -39,6 +39,7 @@ static size_t upb_bufsink_string(void *_sink, const void *hd, const char *ptr, upb_bufsink *sink = _sink; size_t new_size = sink->size; + UPB_ASSERT(new_size > 0); UPB_UNUSED(hd); UPB_UNUSED(handle); |