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
AgeCommit message (Collapse)Author
2018-10-11Further test fail fix for WindowsPetteri Aimonen
2018-10-11Fix test failure on WindowsPetteri Aimonen
2018-10-11Update changelog & authorsPetteri Aimonen
2018-10-11Merge pull request #345 from IndoorAtlas/garbage-input-testPetteri Aimonen
pb_decode double free error with garbage input, PB_ENABLE_MALLOC and callbacks
2018-10-11Don't release fields of a callbackJari Vetoniemi
If submessage array is a callback, there's nothing to release.
2018-10-11Test mem_release with garbage inputJari Vetoniemi
2018-10-03Fix compiler warningPetteri Aimonen
2018-10-03Fix possible null-pointer dereference in decode_callback_field (#342)Petteri Aimonen
This bug can only occur when all of the following apply: 1) Message contains extension fields and 2) the extension field is of callback type and 3) the pb_extension_t structure is defined, but the pointer to pb_callback_t is left as NULL. The correct behaviour in this case is that the field will be skipped. Further, for most compilers atleast and probably for all compilers, the bug will only occur if PB_OLD_CALLBACK_STYLE compilation option is specified.
2018-10-03Add testcase for #342Petteri Aimonen
2018-09-13Don't generate useless _size values that cannot be resolved at runtime (#338)Petteri Aimonen
Previously the generator assumed that any submessage could be found in a different file. Now it knows that if the submessage is in current file, it won't be in a different file.
2018-09-13Fix large generator memory usage with oneof fields (#338)Petteri Aimonen
Instead of 2**n ternary operator construct, uses a sizeof(union{}) construct with linear length increase.
2018-09-13Add testcase for issue #338Petteri Aimonen
2018-09-02Merge pull request #335 from twam/masterPetteri Aimonen
Pass protoc-gen-nanopb.bat to protoc when on Windows
2018-09-01Pass protoc-gen-nanopb.bat to protoc when on WindowsTobias Müller
2018-08-31Merge pull request #333 from trezor/masterPetteri Aimonen
Feature: Flattening nested protobuf names
2018-08-31unit test for typename mangling featurematejcik
2018-08-28fix test failuresmatejcik
2018-08-27add typename manglingmatejcik
Three options for what to do with long type names: M_NONE - original, default. Do nothing special. M_STRIP_PACKAGE - Strip local package name. Useful when you want to use package names, but don't want to deal with `com_mycompany_supersoftware_proto_` prefixes on every symbol. Not useful when your packages cross-reference each other, because it only strips the _current_ package name, so references to other packages actually become invalid. M_FLATTEN - Always use only the last part of a dotted name. Useful when you have packages and/or deeply nested structs that don't actually have colliding names. Then you get shorter C symbols for no additional cost. Not useful when the names can collide.
2018-08-27slight improvement to Names class to support new usecasesmatejcik
2018-07-21Fix dates in changelog (#329)Petteri Aimonen
2018-05-31Add --no-strip-path command line option (#326)Petteri Aimonen
2018-04-11More backslash escape fixesPetteri Aimonen
2018-04-11Fix backslash escaping in migration docPetteri Aimonen
2018-04-09Update changelog & authorsPetteri Aimonen
2018-04-09Merge pull request #320 from KidVizious/cmake-relpath-fixPetteri Aimonen
Cmake relpath fix
2018-04-09Add check for large extension field number (issue #306)Petteri Aimonen
2018-04-07Add testcase for issue #322Petteri Aimonen
2018-04-07Update docs about default valuesPetteri Aimonen
2018-04-07Fix handling of special characters in string/bytes default values (issue #322).Petteri Aimonen
2018-04-05Fix typo in commentJason Bishop
2018-04-05Fix issue when using relative paths and CMakeJason Bishop
- The move to using the protoc plugin rather than the 2-step method has broken the relative path feature due to the differences in path handling. - Use CMAKE_CURRENT_BINARY_PATH instead of FIL_PATH_REL when calling protoc with nanopb plugin to avoid having files placed in an incorrectly nested directory
2018-02-28Merge pull request #315 from jipsuh/bytes-init-value-fixPetteri Aimonen
Bytes init value fix
2018-02-27Some cleanup and comments addedHamina, Juha-Pekka
2018-02-26Fix for default value byte escapingHamina, Juha-Pekka
2018-02-24Merge pull request #314 from AndrewBallinger/bump-descriptor.protoPetteri Aimonen
Updates descriptor.proto to the latest.
2018-02-23Updates descriptor.proto to the latest.Andrew Ballinger
Many options have been added to descriptor.proto since the last time it was pulled in and nanopb will not work on .proto files using the new options. Addressed more permanently by https://github.com/nanopb/nanopb/pull/241 but that PR makes a series of larger changes to get there.
2018-02-20Add documentation note about issue #116Petteri Aimonen
2018-02-16Fix build warning in docsPetteri Aimonen
2018-02-15Merge pull request #309 from oliverlee/add-fixed-count-optionPetteri Aimonen
Add fixed count option
2018-02-15Merge pull request #312 from oliverlee/fix-cmake-options-dependencyPetteri Aimonen
Fix CMake options file dependency
2018-02-15Fix CMake options file dependencyOliver Lee
Restore dependency of generated nanopb source and header files on an options file, if it exists in the same directory and has the name filename without extension. Add nanopb CMake variable NANOPB_DEPENDS which is a list of files to be manually set as dependencies for the generated source and header files. If these dependencies are options files, the corresponding directory is passed as an options path.
2018-02-15Merge pull request #311 from oliverlee/calculate-oneof-sizePetteri Aimonen
Always return size for messages with OneOf fields
2018-02-15Always return size for messages with OneOf fieldsOliver Lee
Use a maximum calculation if submessage sizes are unknown.
2018-02-15Document fixed count optionOliver Lee
2018-02-15Add tests for fixed count optionOliver Lee
2018-02-15Fix scons printing for Python 3Oliver Lee
2018-02-15Fix initialization of fixed count optionOliver Lee
2018-02-15Handle a single non-packed repeated fixed count fieldOliver Lee
Allow the elements of that single non-packed repeated fixed count field to be interleaved among other (non-packed repeated fixed count) fields. Multiple non-packed repeated fixed count fields are allowed if the elements are not interleaved. An error is returned if the count of a repeated fixed count field is not equal the expected count.
2018-02-15Fix decoding of non-packable fixed count repeated fieldsOliver Lee
2018-02-14Merge pull request #310 from oliverlee/fix-cmake-options-includePetteri Aimonen
Use protoc plugin mode for source generation in CMake