Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-02-25 | Add testcase for issue #247 | Petteri Aimonen | 3 | -0/+58 | |
2017-02-25 | Windows build fix | Petteri Aimonen | 1 | -2/+3 | |
2017-02-24 | Fix infinite loop in pb_check_proto3_default_value | Justin DeMartino | 5 | -0/+416 | |
- Occurs with proto3, PB_FIELD_16BIT and submessage > 255 bytes - Add test case for PB_FIELD_16BIT and proto3 | |||||
2017-02-24 | Fix build failure | Petteri Aimonen | 1 | -1/+2 | |
2017-02-24 | Add test coverage for calling pb_release() on a message with callback fields. | Petteri Aimonen | 2 | -2/+13 | |
2017-02-22 | Add fixed length bytes to alltypes test case (issue #244) | Petteri Aimonen | 22 | -20/+80 | |
2017-02-20 | Add new option max_length for strings (issue #107) | Petteri Aimonen | 2 | -0/+2 | |
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-12 | Add regression test for issue 242 | Petteri Aimonen | 3 | -0/+79 | |
2016-12-31 | Add testcase for issue #229 | Petteri Aimonen | 3 | -0/+59 | |
2016-12-22 | Allow overriding proto3 mode (#228) | Petteri Aimonen | 3 | -1/+19 | |
2016-12-09 | Enable clang integer sanitizer and clean up a few warnings. | Petteri Aimonen | 1 | -1/+1 | |
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-09 | Add regression test for issue #227 | Petteri Aimonen | 4 | -1/+39 | |
2016-11-22 | Test case for enum_to_string | Petteri Aimonen | 3 | -0/+45 | |
2016-10-23 | Only run alltypes_proto3 test case if protoc version is new enough | Petteri Aimonen | 1 | -30/+40 | |
2016-10-23 | Add test cases for proto3 has_ field support. | Petteri Aimonen | 7 | -0/+408 | |
2016-08-04 | Add inline allocation of bytes fields | Tom Roeder | 4 | -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-23 | Include package name in include guard (issue #207). | Petteri Aimonen | 3 | -1/+37 | |
Fix suggested by Ulenspiegel. Also added testcase for the same. | |||||
2016-06-06 | Add testcase for issue #205 | Petteri Aimonen | 4 | -0/+38 | |
2016-06-06 | Add static repeated submessage field to mem_release test case. | Petteri Aimonen | 2 | -0/+3 | |
Attempt at reproducing issue #204. | |||||
2016-05-25 | Add testcase for issue #203 | Petteri Aimonen | 4 | -1/+30 | |
2016-03-04 | Provide comments about uncalculable message sizes (issue #195) | Petteri Aimonen | 3 | -0/+19 | |
2015-11-20 | Fix generator crash with Enum inside Oneof (issue #188). | Petteri Aimonen | 2 | -0/+35 | |
Add testcase for the same. | |||||
2015-11-15 | Second fix for -pedantic build issue in tests | Petteri Aimonen | 1 | -1/+2 | |
2015-11-14 | Fix -Wno-pedantic on old GCC | Petteri Aimonen | 1 | -1/+1 | |
2015-11-14 | Add testcase for anonymous unions + few fixes. | Petteri Aimonen | 3 | -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-05 | Fix regression in generating message size defines (issue #172). | Petteri Aimonen | 5 | -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-05 | Add random message generator to help with fuzz testing | Petteri Aimonen | 2 | -0/+105 | |
2015-10-01 | Fix bug in fuzzstub. | Petteri Aimonen | 1 | -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-20 | Add syntax specification to .proto files (issue #167) | Petteri Aimonen | 28 | -13/+70 | |
Eliminates a warning on protoc 3.0. | |||||
2015-09-13 | Fix maximum encoded size for negative enums (issue #166). | Petteri Aimonen | 3 | -0/+72 | |
2015-09-12 | Make the generator understand included files (issue #165). | Petteri Aimonen | 5 | -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-12 | Expand the multiple_files test case to include oneofs and enums | Petteri Aimonen | 5 | -14/+48 | |
2015-09-12 | Add testcase for issue #164 | Petteri Aimonen | 3 | -0/+168 | |
2015-04-03 | Fix for test case build rules | Petteri Aimonen | 1 | -0/+1 | |
2015-04-03 | Improve comment support in .options files. | Petteri Aimonen | 4 | -0/+23 | |
Update issue 145 Status: FixedInGit | |||||
2015-04-03 | Always define enum long names so that cross-file references work. | Petteri Aimonen | 3 | -0/+22 | |
Update issue 118 Status: FixedInGit | |||||
2015-04-03 | Generate #defines for plain message ids | Petteri Aimonen | 1 | -0/+1 | |
2015-03-22 | Add simple test case for message ids | Petteri Aimonen | 2 | -0/+10 | |
2015-03-07 | Fix oneof submessage initialization bug. | Petteri Aimonen | 1 | -2/+6 | |
Update issue 149 Status: FixedInGit | |||||
2015-02-26 | Fix generator error when long_names:false is combined with Oneofs. | Petteri Aimonen | 1 | -0/+9 | |
Update issue 147 Status: FixedInGit | |||||
2015-01-27 | Fix generator bug when oneof is first field in a message. | Petteri Aimonen | 2 | -37/+104 | |
Added test case for the same. Update issue 142 Status: FixedInGit | |||||
2015-01-23 | Fix encoded_size #defines for oneof messages. | Petteri Aimonen | 3 | -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-15 | Fix clang compiler warning in intsizes unit test. | Petteri Aimonen | 1 | -13/+13 | |
2015-01-15 | Release memory when overwriting oneof fields. | Petteri Aimonen | 2 | -22/+105 | |
Update issue 131 Status: FixedInGit | |||||
2015-01-11 | Add oneofs to AllTypes test case | Petteri Aimonen | 12 | -2/+53 | |
2015-01-04 | Actually make the protoc version check work | Petteri Aimonen | 2 | -6/+10 | |
2015-01-04 | Only run oneof test when protoc >= 2.6 is available | Petteri Aimonen | 2 | -15/+27 | |
2015-01-04 | Implement support for oneofs (C unions). | Petteri Aimonen | 4 | -0/+176 | |
Basic test included, should probably add an oneof to the AllTypes test also. Update issue 131 Status: Started | |||||
2015-01-04 | Detect too large varint values when decoding. | Petteri Aimonen | 2 | -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-04 | Add int_size option for generator. | Petteri Aimonen | 3 | -0/+159 | |
This allows overriding the integer field types to e.g. uint8_t for saving RAM. Update issue 139 Status: FixedInGit |