Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-03-12 | Improve varint unittest coverage for error cases | Petteri Aimonen | 1 | -2/+46 | |
2017-03-05 | Forgot to fill in the dates | Petteri Aimonen | 2 | -2/+2 | |
2017-03-05 | Setting version to 0.3.9-dev | Petteri Aimonen | 4 | -4/+4 | |
2017-03-05 | Publishing nanopb-0.3.8 | Petteri Aimonen | 4 | -4/+4 | |
2017-03-05 | Update changelog | Petteri Aimonen | 1 | -1/+1 | |
2017-03-02 | Fix alltypes_callback testcase | Petteri Aimonen | 4 | -10/+24 | |
The test case was erroneously comparing whole submsg structures, which could result in false errors when padding bytes differed. | |||||
2017-03-02 | Fix callback pointer corruption in proto3 mode (issue #249) | Petteri Aimonen | 1 | -1/+1 | |
2017-03-02 | Add regression test for issue #249 | Petteri Aimonen | 3 | -0/+81 | |
2017-03-02 | Add callback test for proto3 mode | Petteri Aimonen | 4 | -0/+744 | |
2017-03-02 | Fix bug in alltypes_callback test case | Petteri Aimonen | 2 | -4/+5 | |
2017-02-26 | Update changelog | Petteri Aimonen | 2 | -2/+24 | |
2017-02-25 | Fix build failure (const_cast name conflict) | Petteri Aimonen | 1 | -4/+4 | |
Thought I was cleaning up the naming by calling the function const_cast(), because that's what it does. But of course it conflicts with the C++ builtin, so renaming it to pb_const_cast() now. | |||||
2017-02-25 | Add transitional options.proto file (#241) | Petteri Aimonen | 1 | -0/+120 | |
2017-02-25 | Add better error message on Python library version imcompatibility (issue #240) | Petteri Aimonen | 1 | -0/+14 | |
2017-02-25 | Make pb_check_proto3_default_value() recurse into submessages (issue #247) | Petteri Aimonen | 1 | -23/+47 | |
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-25 | Merge pull request #245 from jdemar/master | Petteri Aimonen | 6 | -1/+417 | |
Fix infinite loop in pb_check_proto3_default_value | |||||
2017-02-24 | Fix infinite loop in pb_check_proto3_default_value | Justin DeMartino | 6 | -1/+417 | |
- 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-22 | Extend inline / fixed length bytes array support (issue #244) | Petteri Aimonen | 7 | -85/+97 | |
Adds support for proto3 and POINTER field types to have fixed length bytes arrays. Also changed the .proto option to a separate fixed_length:true, while also supporting the old FT_INLINE option. Restructured the generator and decoder logic to threat the inline bytes fields more like "just another field type". | |||||
2017-02-20 | Add new option max_length for strings (issue #107) | Petteri Aimonen | 4 | -0/+11 | |
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-13 | Update download links (changes in webhost system) | Petteri Aimonen | 1 | -3/+3 | |
2017-02-12 | Merge branch 'master' of github.com:nanopb/nanopb | Petteri Aimonen | 6 | -37/+94 | |
2017-02-12 | Zero-valued extension fields were mistakenly ignored by encoder. (issue #242) | Petteri Aimonen | 1 | -2/+7 | |
2017-02-12 | Add regression test for issue 242 | Petteri Aimonen | 3 | -0/+79 | |
2017-01-21 | Merge pull request #239 from mxk/plugin-fix | Petteri Aimonen | 2 | -2/+2 | |
Fix documentation for protoc --plugin argument | |||||
2017-01-20 | Fix documentation for protoc --plugin argument | Maxim Khitrov | 2 | -2/+2 | |
2017-01-18 | Merge pull request #237 from wak-google/fix-build | Petteri Aimonen | 1 | -26/+57 | |
WIP: cmake cleanup to support installable host tooling | |||||
2017-01-18 | Merge pull request #236 from wak-google/fix-lib | Petteri Aimonen | 1 | -3/+3 | |
cmake: Fix library name | |||||
2017-01-17 | cmake: Cleanup the build so that host and runtime tooling is installable | William A. Kennington III | 1 | -26/+57 | |
Signed-off-by: William A. Kennington III <wak@google.com> | |||||
2017-01-17 | cmake: Fix library name | William A. Kennington III | 1 | -3/+3 | |
The produced static library should be `libprotobuf-nanopb.a` instead of the current `liblibprotobuf-nanopb.a`. Signed-off-by: William A. Kennington III <wak@google.com> | |||||
2017-01-12 | Merge pull request #230 from Tobba/nonempty-substring | Petteri Aimonen | 3 | -9/+35 | |
Fix closing a non-empty substream resulting in an incorrect stream state | |||||
2017-01-12 | Fix closing a non-empty substream resulting in an incorrect stream state | Tobba | 3 | -9/+35 | |
2016-12-31 | Merge branch 'master' of github.com:nanopb/nanopb | Petteri Aimonen | 2 | -2/+5 | |
2016-12-31 | Fix multiple oneofs in same message (issue #229) | Petteri Aimonen | 3 | -8/+20 | |
Previously the field iterator logic didn't know whether two oneof fields were part of the same union, or separate. This caused wrong pointers to be calculated if multiple oneofs were inside a single message. This commit fixes this by using dataoffset of PB_SIZE_MAX to indicate union fields after the first field. Theoretically PB_SIZE_MAX is also a valid value for data offset, which could cause errors. Adding a compile-time assert for this is somewhat difficult. However I consider it extremely unlikely that there is any platform that could trigger this situation, as it would require 255 bytes of extra data/padding between two protobuf oneof fields. On 64-bit architectures the worst case is 16 bytes, and even esoteric platforms only align to 64 bytes or so. Manual modification of the generated .pb.h file could trigger this, but even then it would require pretty bad luck to happen. | |||||
2016-12-31 | Add testcase for issue #229 | Petteri Aimonen | 3 | -0/+59 | |
2016-12-23 | Update readme | Petteri Aimonen | 1 | -1/+1 | |
2016-12-23 | Merge pull request #231 from Tobba/expose-varint32 | Petteri Aimonen | 2 | -2/+5 | |
Make pb_decode_varint32 public API | |||||
2016-12-23 | Make pb_decode_varint32 public API | Tobba | 2 | -2/+5 | |
2016-12-22 | Allow overriding proto3 mode (#228) | Petteri Aimonen | 4 | -5/+23 | |
2016-12-09 | Enable clang integer sanitizer and clean up a few warnings. | Petteri Aimonen | 3 | -5/+7 | |
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 | Merge branch 'kurddt-fix_unalign' (issues #226, #227) | Petteri Aimonen | 1 | -22/+55 | |
2016-12-09 | Add regression test for issue #227 | Petteri Aimonen | 4 | -1/+39 | |
2016-12-09 | Refactor proto3 logic into pb_check_proto3_default_value() | Petteri Aimonen | 1 | -26/+55 | |
Mainly to clean up the code. Also fixed handling of PB_LTYPE_FIXED_LENGTH_BYTES for proto3 files. | |||||
2016-12-09 | Fix potential unaligned access | Guillaume Lager | 1 | -5/+9 | |
If the type is string, do not try to deference it as int16, int32 or int64. This may lead to unalign memory access, which may cause trap on some architectures (ARM) | |||||
2016-11-22 | Merge branch 'wak-google-upstream1' (#223) | Petteri Aimonen | 5 | -0/+72 | |
2016-11-22 | Test case for enum_to_string | Petteri Aimonen | 3 | -0/+45 | |