summaryrefslogtreecommitdiff
path: root/upb/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2018-12-15 16:17:48 -0800
committerJoshua Haberman <jhaberman@gmail.com>2018-12-15 16:17:48 -0800
commit380558922b661499f4eb43b0463b5a73e5fe87b7 (patch)
treea4784816965ae37e72bde3983c68738d7b0d41a4 /upb/upb.h
parent2681a17513be312d1da924a1644f040eb8c1372a (diff)
test_encoder passes! Other tests still need to be fixed.
Diffstat (limited to 'upb/upb.h')
-rw-r--r--upb/upb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/upb/upb.h b/upb/upb.h
index 2fb7a88..020022b 100644
--- a/upb/upb.h
+++ b/upb/upb.h
@@ -463,6 +463,7 @@ struct upb_alloc {
UPB_INLINE void *upb_malloc(upb_alloc *alloc, size_t size) {
UPB_ASSERT(alloc);
+ UPB_ASSERT(size < 65535);
return alloc->func(alloc, NULL, 0, size);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback