Fix infinite loop in pb_check_proto3_default_value
authorJustin DeMartino <jdemarti@gmail.com>
Sat, 25 Feb 2017 04:55:14 +0000 (20:55 -0800)
committerJustin DeMartino <jdemarti@gmail.com>
Sat, 25 Feb 2017 05:01:43 +0000 (21:01 -0800)
commit119d0fd396a9cb3b6e7067f8102694f1485e2e94
treeaa1c2f4b4e781e236cc5f122545d9e45f6f951c9
parent60299d9270c1e7114a5aec864f192269ba6731dd
Fix infinite loop in pb_check_proto3_default_value

- Occurs with proto3, PB_FIELD_16BIT and submessage > 255 bytes
- Add test case for PB_FIELD_16BIT and proto3
pb_encode.c
tests/field_size_16_proto3/SConscript [new file with mode: 0644]
tests/field_size_16_proto3/alltypes.options [new file with mode: 0644]
tests/field_size_16_proto3/alltypes.proto [new file with mode: 0644]
tests/field_size_16_proto3/decode_alltypes.c [new file with mode: 0644]
tests/field_size_16_proto3/encode_alltypes.c [new file with mode: 0644]