aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2016-08-04Add inline allocation of bytes fieldsTom Roeder4-0/+109
This commit adds a new FT_INLINE allocation type that forces bytes fields to be inlined into the struct. E.g., pb_byte_t my_bytes[32]. This requires max_size for the bytes field. The FT_INLINE type is represented as a new LTYPE: FT_LTYPE_FIXED_LENGTH_BYTES. This commit also updates the documentation with FT_INLINE and FT_LTYPE_FIXED_LENGTH_BYTES. Added an AUTHORS file in apparent order of appearance in the git log history from $(git log --all).
2016-07-23Include package name in include guard (issue #207).Petteri Aimonen3-1/+37
Fix suggested by Ulenspiegel. Also added testcase for the same.
2016-06-06Add testcase for issue #205Petteri Aimonen4-0/+38
2016-06-06Add static repeated submessage field to mem_release test case.Petteri Aimonen2-0/+3
Attempt at reproducing issue #204.
2016-05-25Add testcase for issue #203Petteri Aimonen4-1/+30
2016-03-04Provide comments about uncalculable message sizes (issue #195)Petteri Aimonen3-0/+19
2015-11-20Fix generator crash with Enum inside Oneof (issue #188).Petteri Aimonen2-0/+35
Add testcase for the same.
2015-11-15Second fix for -pedantic build issue in testsPetteri Aimonen1-1/+2
2015-11-14Fix -Wno-pedantic on old GCCPetteri Aimonen1-1/+1
2015-11-14Add testcase for anonymous unions + few fixes.Petteri Aimonen3-0/+140
Fixes compilation error with anonymous unions when it is not the last field in message. Also fixes extraneous newlines in header file. Cleanup the pb.h extraneous use of ##.
2015-10-05Fix regression in generating message size defines (issue #172).Petteri Aimonen5-0/+36
This bug was triggered when: 1. A .proto file included another .proto from a different directory. 2. The another .proto has an associated .options file. Added regression test for the same.
2015-10-05Add random message generator to help with fuzz testingPetteri Aimonen2-0/+105
2015-10-01Fix bug in fuzzstub.Petteri Aimonen1-1/+1
The fread call always returned a message length of 1 byte, making the fuzz stub used for external fuzzers useless. The normal fuzztest.c was unaffected. Bug found using afl-fuzz.
2015-09-20Add syntax specification to .proto files (issue #167)Petteri Aimonen28-13/+70
Eliminates a warning on protoc 3.0.
2015-09-13Fix maximum encoded size for negative enums (issue #166).Petteri Aimonen3-0/+72
2015-09-12Make the generator understand included files (issue #165).Petteri Aimonen5-7/+11
This will allow message sizes and enum options to be available across the include files. Currently searching for .options files for included files may not work for all path combinations, this is related to issue #116. Should probably make a pull request to protoc about that.
2015-09-12Expand the multiple_files test case to include oneofs and enumsPetteri Aimonen5-14/+48
2015-09-12Add testcase for issue #164Petteri Aimonen3-0/+168
2015-04-03Fix for test case build rulesPetteri Aimonen1-0/+1
2015-04-03Improve comment support in .options files.Petteri Aimonen4-0/+23
Update issue 145 Status: FixedInGit
2015-04-03Always define enum long names so that cross-file references work.Petteri Aimonen3-0/+22
Update issue 118 Status: FixedInGit
2015-04-03Generate #defines for plain message idsPetteri Aimonen1-0/+1
2015-03-22Add simple test case for message idsPetteri Aimonen2-0/+10
2015-03-07Fix oneof submessage initialization bug.Petteri Aimonen1-2/+6
Update issue 149 Status: FixedInGit
2015-02-26Fix generator error when long_names:false is combined with Oneofs.Petteri Aimonen1-0/+9
Update issue 147 Status: FixedInGit
2015-01-27Fix generator bug when oneof is first field in a message.Petteri Aimonen2-37/+104
Added test case for the same. Update issue 142 Status: FixedInGit
2015-01-23Fix encoded_size #defines for oneof messages.Petteri Aimonen3-0/+65
The sizes are represented as EncodedSize() instances, which cause max() operation to sort them by address instead of value. This caused pretty much random item to be selected for the maximum. Update issue 141 Status: FixedInGit
2015-01-15Fix clang compiler warning in intsizes unit test.Petteri Aimonen1-13/+13
2015-01-15Release memory when overwriting oneof fields.Petteri Aimonen2-22/+105
Update issue 131 Status: FixedInGit
2015-01-11Add oneofs to AllTypes test casePetteri Aimonen12-2/+53
2015-01-04Actually make the protoc version check workPetteri Aimonen2-6/+10
2015-01-04Only run oneof test when protoc >= 2.6 is availablePetteri Aimonen2-15/+27
2015-01-04Implement support for oneofs (C unions).Petteri Aimonen4-0/+176
Basic test included, should probably add an oneof to the AllTypes test also. Update issue 131 Status: Started
2015-01-04Detect too large varint values when decoding.Petteri Aimonen2-3/+17
Because Issue #139 now allows limiting integer fields, it is good to check the values received from other protobuf libraries against the lower limits.
2015-01-04Add int_size option for generator.Petteri Aimonen3-0/+159
This allows overriding the integer field types to e.g. uint8_t for saving RAM. Update issue 139 Status: FixedInGit
2015-01-03Change PB_RETURN_ERROR() macro to avoid compiler warnings.Petteri Aimonen1-3/+0
Update issue 140 Status: FixedInGit
2014-12-27Fix build failure due to missing dependency in SConscriptPetteri Aimonen1-2/+2
2014-12-26Fix bug in backwards_compatibility test case.Petteri Aimonen1-4/+1
The memset() filled also the extensions field, which was just waiting for a crash to happen.
2014-12-26Add testcase for releasing memory in submessages/extensionsPetteri Aimonen3-0/+149
2014-12-26Move malloc support to tests/common directoryPetteri Aimonen5-73/+60
2014-12-26Move malloc_wrappers.c to tests/commonPetteri Aimonen7-7/+10
2014-12-22Verify build with protobuf-3.0.0, fix problems.Petteri Aimonen1-2/+2
Also updated descriptor.proto from protobuf-3.0.0.
2014-09-11Add a fuzz testing stub for ability to use external generators alsoPetteri Aimonen5-0/+209
2014-09-11Add a better fuzz test.Petteri Aimonen8-1/+565
Attempts to verify all the properties defined in the security model, while also being portable and able to run on many platforms.
2014-09-07Add test case for simulated io errors.Petteri Aimonen5-0/+203
Update issue 126 Status: FixedInGit
2014-09-07Add a few missing unit testsPetteri Aimonen3-0/+36
2014-09-07Code coverage results were ignoring the data from encode/decode unittests.Petteri Aimonen1-3/+3
Update issue 126 Status: Started
2014-08-28Fix cyclic messages support in generator. Beginnings of test.Petteri Aimonen4-0/+191
Update issue 130 Status: Started
2014-08-19Add #if guard for .pb.h version.Petteri Aimonen4-100/+367
The version in PB_PROTO_HEADER_VERSION can be bumped whenever there is a breaking change to the generated files, and it will then alert to the difference. Update issue 129 Status: FixedInGit
2014-08-18Rename poorly named identifier to avoid name conflicts.Petteri Aimonen1-1/+0
Update issue 106 Status: FixedInGit