Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2017-10-01Small fix to decode_map examplePetteri Aimonen
2017-10-01Add test/example of using 'map' type. (issue #289)Petteri Aimonen
2017-09-16Mac OS X build fixPetteri Aimonen
2017-09-16Fix windows build failPetteri Aimonen
2017-09-16Add option to build without 64-bit support (issue #86)Petteri Aimonen
2017-09-16Test also the optionals case in field_size_*Petteri Aimonen
2017-09-15Properly detect truncated tags in corrupted messages (issue #277)Petteri Aimonen
2017-09-15Make pb_decode_varint32 overflow checks exact (issue #258)Petteri Aimonen
2017-06-15Add regression test for issue #259Petteri Aimonen
2017-04-14Add testcase for issue #256Petteri Aimonen
2017-03-28Add regression test for issue #253Petteri Aimonen
2017-03-12Improve varint unittest coverage for error casesPetteri Aimonen
2017-03-02Fix alltypes_callback testcasePetteri Aimonen
The test case was erroneously comparing whole submsg structures, which could result in false errors when padding bytes differed.
2017-03-02Add regression test for issue #249Petteri Aimonen
2017-03-02Add callback test for proto3 modePetteri Aimonen
2017-03-02Fix bug in alltypes_callback test casePetteri Aimonen
2017-02-25Add testcase for issue #247Petteri Aimonen
2017-02-25Windows build fixPetteri Aimonen
2017-02-25Fix infinite loop in pb_check_proto3_default_valueJustin DeMartino
- Occurs with proto3, PB_FIELD_16BIT and submessage > 255 bytes - Add test case for PB_FIELD_16BIT and proto3
2017-02-24Fix build failurePetteri Aimonen
2017-02-24Add test coverage for calling pb_release() on a message with callback fields.Petteri Aimonen
2017-02-22Add fixed length bytes to alltypes test case (issue #244)Petteri Aimonen
2017-02-20Add new option max_length for strings (issue #107)Petteri Aimonen
Max_size is the allocated size, so users had to add +1 for the null terminator. Max_length does the +1 automatically in the generator.
2017-02-12Add regression test for issue 242Petteri Aimonen
2016-12-31Add testcase for issue #229Petteri Aimonen
2016-12-22Allow overriding proto3 mode (#228)Petteri Aimonen
2016-12-09Enable clang integer sanitizer and clean up a few warnings.Petteri Aimonen
Changed to use simple indexing instead of while (count--) in buf_read()/buf_write(), because the count overflowed from 0 to max on the last iteration. While the unsigned integer overflow is defined and behaviour was correct, making this simple change allowed enabling the sanitizer which might catch true errors elsewhere in the code.
2016-12-09Add regression test for issue #227Petteri Aimonen
2016-11-22Test case for enum_to_stringPetteri Aimonen
2016-10-23Only run alltypes_proto3 test case if protoc version is new enoughPetteri Aimonen
2016-10-23Add test cases for proto3 has_ field support.Petteri Aimonen
2016-08-05Add inline allocation of bytes fieldsTom Roeder
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 Aimonen
Fix suggested by Ulenspiegel. Also added testcase for the same.
2016-06-06Add testcase for issue #205Petteri Aimonen
2016-06-06Add static repeated submessage field to mem_release test case.Petteri Aimonen
Attempt at reproducing issue #204.
2016-05-25Add testcase for issue #203Petteri Aimonen
2016-03-04Provide comments about uncalculable message sizes (issue #195)Petteri Aimonen
2015-11-21Fix generator crash with Enum inside Oneof (issue #188).Petteri Aimonen
Add testcase for the same.
2015-11-15Second fix for -pedantic build issue in testsPetteri Aimonen
2015-11-14Fix -Wno-pedantic on old GCCPetteri Aimonen
2015-11-14Add testcase for anonymous unions + few fixes.Petteri Aimonen
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 Aimonen
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 Aimonen
2015-10-01Fix bug in fuzzstub.Petteri Aimonen
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 Aimonen
Eliminates a warning on protoc 3.0.
2015-09-13Fix maximum encoded size for negative enums (issue #166).Petteri Aimonen
2015-09-12Make the generator understand included files (issue #165).Petteri Aimonen
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 Aimonen
2015-09-12Add testcase for issue #164Petteri Aimonen
2015-04-03Fix for test case build rulesPetteri Aimonen