summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-02-12Merge branch 'master' of github.com:nanopb/nanopbPetteri Aimonen6-37/+94
2017-02-12Zero-valued extension fields were mistakenly ignored by encoder. (issue #242)Petteri Aimonen1-2/+7
2017-02-12Add regression test for issue 242Petteri Aimonen3-0/+79
2017-01-21Merge pull request #239 from mxk/plugin-fixPetteri Aimonen2-2/+2
Fix documentation for protoc --plugin argument
2017-01-20Fix documentation for protoc --plugin argumentMaxim Khitrov2-2/+2
2017-01-18Merge pull request #237 from wak-google/fix-buildPetteri Aimonen1-26/+57
WIP: cmake cleanup to support installable host tooling
2017-01-18Merge pull request #236 from wak-google/fix-libPetteri Aimonen1-3/+3
cmake: Fix library name
2017-01-17cmake: Cleanup the build so that host and runtime tooling is installableWilliam A. Kennington III1-26/+57
Signed-off-by: William A. Kennington III <wak@google.com>
2017-01-17cmake: Fix library nameWilliam A. Kennington III1-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-12Merge pull request #230 from Tobba/nonempty-substringPetteri Aimonen3-9/+35
Fix closing a non-empty substream resulting in an incorrect stream state
2017-01-12Fix closing a non-empty substream resulting in an incorrect stream stateTobba3-9/+35
2016-12-31Merge branch 'master' of github.com:nanopb/nanopbPetteri Aimonen2-2/+5
2016-12-31Fix multiple oneofs in same message (issue #229)Petteri Aimonen3-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-31Add testcase for issue #229Petteri Aimonen3-0/+59
2016-12-23Update readmePetteri Aimonen1-1/+1
2016-12-23Merge pull request #231 from Tobba/expose-varint32Petteri Aimonen2-2/+5
Make pb_decode_varint32 public API
2016-12-23Make pb_decode_varint32 public APITobba2-2/+5
2016-12-22Allow overriding proto3 mode (#228)Petteri Aimonen4-5/+23
2016-12-09Enable clang integer sanitizer and clean up a few warnings.Petteri Aimonen3-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-09Merge branch 'kurddt-fix_unalign' (issues #226, #227)Petteri Aimonen1-22/+55
2016-12-09Add regression test for issue #227Petteri Aimonen4-1/+39
2016-12-09Refactor proto3 logic into pb_check_proto3_default_value()Petteri Aimonen1-26/+55
Mainly to clean up the code. Also fixed handling of PB_LTYPE_FIXED_LENGTH_BYTES for proto3 files.
2016-12-09Fix potential unaligned accessGuillaume Lager1-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-22Merge branch 'wak-google-upstream1' (#223)Petteri Aimonen5-0/+72
2016-11-22Test case for enum_to_stringPetteri Aimonen3-0/+45
2016-11-22Small indentation and naming fixes to enum_to_string functionalityPetteri Aimonen1-5/+5
2016-11-21nanopb: update generator to emit optional enum->string mapping functionWilliam A. Kennington III2-0/+27
Google-Bug-Id: 28000875 Signed-off-by: William A. Kennington III <wak@google.com> Change-Id: I1bffd39168abe04593588291b0ebbe5199a00138
2016-11-19Include version number in PlatformIO library.json (issue 222)Petteri Aimonen2-0/+3
2016-10-30Change download links to httpsPetteri Aimonen1-3/+3
2016-10-30Setting version to 0.3.8-devPetteri Aimonen3-3/+3
2016-10-30Publishing nanopb-0.3.7Petteri Aimonen4-4/+4
2016-10-24Note about protoc updatePetteri Aimonen1-0/+1
2016-10-24Build fix for previous commitPetteri Aimonen1-1/+1
2016-10-24Build fix for previous commitPetteri Aimonen1-1/+1
2016-10-24Strip debug symbols from linux library filesPetteri Aimonen1-0/+3
2016-10-23Only run alltypes_proto3 test case if protoc version is new enoughPetteri Aimonen1-30/+40
2016-10-23Update changelog and authors listPetteri Aimonen2-0/+15
2016-10-23Add test cases for proto3 has_ field support.Petteri Aimonen7-0/+408
2016-10-23Set the proto3 option by default if file specifies proto3 syntaxPetteri Aimonen1-0/+3
2016-10-23Fix missing warning with large bytes fields (issue #220)Petteri Aimonen1-2/+5
Need to generate compile time check if the bytes field + size field might exceed 255 bytes. Also eliminated spurious checks generated for some callback fields.
2016-10-11Merge pull request #218 from berni155/masterPetteri Aimonen1-1/+4
Fix typo in encoding
2016-10-10Fix typo in encodingberni1551-1/+4
2016-10-10Merge pull request #208 from podsvirov/topic-cmake-projectPetteri Aimonen4-0/+72
Added CMake project
2016-10-10Merge pull request #216 from berni155/proto3_singular_fields_supportPetteri Aimonen5-6/+42
Proto3 singular fields support
2016-10-09Prevent fields with default value from encoding when proto3 option is setBernhard Krämer1-0/+17
2016-10-09Add proto3 option to handle singular fieldsBernhard Krämer4-6/+25
2016-09-02Fix typo in docs (thanks to @alecdavis)Petteri Aimonen1-1/+1
2016-08-10Merge pull request #213 from PiotrSikora/export_licensePetteri Aimonen1-0/+3
Bazel: export LICENSE.txt file.
2016-08-10Bazel: export LICENSE.txt file.Piotr Sikora1-0/+3
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2016-08-06Fix formatting error in docsPetteri Aimonen1-1/+1