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
2019-12-18Clean up generated .pb.h files a bitPetteri Aimonen
2019-12-18Improve callback handling inside oneofs. (#175)Petteri Aimonen
Removed PB_OLD_CALLBACK_STYLE. Added generator option submsg_callback to have a message-level callback for setting up callbacks inside oneofs. Added example/testcase about using callbacks with oneofs.
2019-11-18Add proto3_singular_msgs option, update tests (#308, #452)Petteri Aimonen
This will be a breaking change for a lot of code using proto3 mode. All proto3 submessages now have has_ field, that must be set to 'true' to have the field encoded. To ease the transition, there is a generator option proto3_singular_msgs to restore the old behavior.
2019-10-02Fix undefined behavior with bool fields (#434)Petteri Aimonen
Previously nanopb didn't enforce that decoded bool fields had valid true/false values. This could lead to undefined behavior in user code. This has potential security implications when 1) message contains bool field (has_ fields are safe) and 2) user code uses ternary operator dependent on the field value, such as: int value = msg.my_bool ? 1234 : 0 and 3) the value returned from ternary operator affects a memory access, such as: data_array[value] = 9999
2019-06-01Add migration note about enum min/maxPetteri Aimonen
2019-01-25Add pb_decode_ex(), pb_encode_ex() functions.Petteri Aimonen
This should simplify specifying combinations, so that we don't need every variant of pb_decode_noinit_delimited() etc. Also disables zero-terminated decoding in pb_decode (issue #278).
2019-01-25Rename #define fieldname_default to _DEFAULT to avoid conflict with older ↵Petteri Aimonen
constant. This should make migration error messages less confusing.
2019-01-25New field descriptor format.Petteri Aimonen
Now field information is stored as a variable-length uint32_t array. This reduces the minimum size in most cases: old new basic field: 10 bytes 4 bytes repeated field: 10 bytes 8 bytes field with 12bit tag/size: 16 bytes 8 bytes field with 16bit tag/size: 16 bytes 16 bytes field with 32bit tag/size: 28 bytes 16 bytes Further, now the descriptor size can be increased per-field and per-message, instead of previous global PB_FIELD_16BIT and PB_FIELD_32BIT. PB_FIELD_32BIT still affects the pb_size_t type, which is 16-bit by default.
2018-11-10Merge branch 'dev_0.4'Petteri Aimonen
2018-11-10Fix .options file case sensitivity on Windows.Petteri Aimonen
2018-11-10Make --no-strip-path default (#326)Petteri Aimonen
This makes nanopb behaviour match protoc --cpp_out=.
2018-04-11More backslash escape fixesPetteri Aimonen
2018-04-11Fix backslash escaping in migration docPetteri Aimonen
2018-04-07Update docs about default valuesPetteri Aimonen
2017-07-04Merge branch 'master' into dev_0.4Petteri Aimonen
2017-06-04oneof migration notePetteri Aimonen
2017-05-05Check CHAR_BIT before using optimized pb_decode_fixedXX() versionPetteri Aimonen
2017-05-03Migration note about string lengthPetteri Aimonen
2017-03-05Forgot to fill in the datesPetteri Aimonen
2017-01-12Fix closing a non-empty substream resulting in an incorrect stream stateTobba
2016-02-13Publishing nanopb-0.3.5nanopb-0.3.5Petteri Aimonen
2016-01-27Add note to migration docPetteri Aimonen
2015-01-24Publishing nanopb-0.3.2nanopb-0.3.2Petteri Aimonen
2015-01-11New generator options for oneofs: allow skipping or generating as normal ↵Petteri Aimonen
'optional' fields. The behaviour with no_unions:true is the same as of nanopb 0.3.1 and earlier.
2014-08-26Add missing * in migration docsPetteri Aimonen
2014-08-26Update changelogPetteri Aimonen
2014-08-18Rename poorly named identifier to avoid name conflicts.Petteri Aimonen
Update issue 106 Status: FixedInGit
2014-08-18Change the _count fields to use pb_size_t datatype.Petteri Aimonen
Update issue 82 Status: FixedInGit
2014-08-10Add document detailing migration from old versionsPetteri Aimonen