SHA256
8
0
forked from pool/nanopb

31 Commits

Author SHA256 Message Date
ba35fa8421 Accepting request 1228004 from devel:libraries:c_c++
- Update to 0.4.9.1:
  * Fix memory not released on error return from pb_decode_ex() (bsc#1234088)
  * Fix deprecated MakeClass() call in generator (#1015)
  * Fix compiler error with enums and --c-style (#1014)
  * Fix version conflict with bazel build rules (#1034)
  * Fix problems with enum intsize introduced in 0.4.8 (#961)
  * Fix Python pkg_resources deprecation (#887)
  * Add option to discard deprecated fields (#997)
  * Use fallback_type when breaking circular dependencies (#996)
  * Discard autogenerated map entry types if the field is skipped (#956)
  * Use pb_byte_t = uint8_t when available (#916)
  * Add enum_validate option (#988, #991)
  * Add check_return attribute for IAR compiler (#965)
  * Add label_override field option (#962, #963)
  * Add Zephyr module specification (#946)
  * Add Apple privacy manifest (#938)
  * Bazel rule improvements, including bzlmod migration (#927, #950)
  * CMake build rule improvements (#936, #939, #942, #958, #968, #971, #974, #978, #1003)
  * Improve C++ descriptors (#931, #933)
  * Test case improvements (#928)
  * Update dependency package versions (#924, #959, #986, #998, #1010)
  * Documentation improvements (#319, #710, #999)

OBS-URL: https://build.opensuse.org/request/show/1228004
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=14
2024-12-03 19:47:45 +00:00
Paolo Stivanin
be54df776b - Update to 0.4.9.1:
* Fix memory not released on error return from pb_decode_ex() (bsc#1234088)
  * Fix deprecated MakeClass() call in generator (#1015)
  * Fix compiler error with enums and --c-style (#1014)
  * Fix version conflict with bazel build rules (#1034)
  * Fix problems with enum intsize introduced in 0.4.8 (#961)
  * Fix Python pkg_resources deprecation (#887)
  * Add option to discard deprecated fields (#997)
  * Use fallback_type when breaking circular dependencies (#996)
  * Discard autogenerated map entry types if the field is skipped (#956)
  * Use pb_byte_t = uint8_t when available (#916)
  * Add enum_validate option (#988, #991)
  * Add check_return attribute for IAR compiler (#965)
  * Add label_override field option (#962, #963)
  * Add Zephyr module specification (#946)
  * Add Apple privacy manifest (#938)
  * Bazel rule improvements, including bzlmod migration (#927, #950)
  * CMake build rule improvements (#936, #939, #942, #958, #968, #971, #974, #978, #1003)
  * Improve C++ descriptors (#931, #933)
  * Test case improvements (#928)
  * Update dependency package versions (#924, #959, #986, #998, #1010)
  * Documentation improvements (#319, #710, #999)

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=29
2024-12-03 14:48:00 +00:00
c7269d9580 Accepting request 1146589 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1146589
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=13
2024-02-14 22:19:51 +00:00
Paolo Stivanin
6c8ff28e96 Accepting request 1146588 from home:dimstar:Factory
- Drop generator/nanopb_generator.py2 which is the only python2
  based script. The script's content itself mentions this is for
  compatibility only and should not be used (boo#1219928).

OBS-URL: https://build.opensuse.org/request/show/1146588
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=27
2024-02-14 14:30:55 +00:00
be70bf8e3e Accepting request 1127246 from devel:libraries:c_c++
- Update to 0.4.8: 
  * Fix name mangling with dependent proto files (#892, #899)
  * Fix initializer macros for custom callback datatype (#806)
  * Use UTF-8 encoding for generated files irrespective of locale (#868)
  * Add integer size overrides for fixed width types (#897)
  * Add ability to specify size of generated enums (#867)
  * Provide define for largest message in file (#893)
  * Automatically break circular dependencies (#881)
  * Use static_assert keyword on MSVC in C89 mode (#843)
  * Fix comments generation for submessages (#788)
  * Fix handling of spaces in arguments passed through protoc (#810)
  * Fix problems with multiple files and mangle_names option (#783, #820)
  * Fix generator error when using M_STRIP_PACKAGE without package name (#795)
  * Fix compilation error with fixed size array and FT_POINTER (#630)
  * Fix wrong format in Python Poetry project file (#811)
  * Fix unnecessary generator message when using --quiet (#831)
  * Fix enum_to_string with C++ (#838)
  * Fix /* */ inside .proto file comment
  * Workaround python-protobuf version issues (#787)
  * Safeguard substraction in pb_read() with custom streams (#697)
  * Always include pb_release() as function, instead of macro. (#802)
  * Allow using = instead of : with generator option -s
  * Allow specifying include format without special characters (#810)
  * Allow including headers from inside of extern C (#814)
  * Add option NANOPB_PB2_TEMP_DIR to store nanopb_pb2.py in a temporary dir (#601)
  * Add compile-time error message for when PB_FIELD_32BIT is needed (#680, #827)
  * Add --c-style command line option for naming style (#199, #533, #791)
  * Add --protoc-opt to nanopb_generator.py (#628)
  * Add ENUMTYPE convenience macros (#803)
  * Generator: keep order of messages when possible

OBS-URL: https://build.opensuse.org/request/show/1127246
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=12
2023-11-17 19:50:18 +00:00
Paolo Stivanin
38f6b35bc6 - Update to 0.4.8:
* Fix name mangling with dependent proto files (#892, #899)
  * Fix initializer macros for custom callback datatype (#806)
  * Use UTF-8 encoding for generated files irrespective of locale (#868)
  * Add integer size overrides for fixed width types (#897)
  * Add ability to specify size of generated enums (#867)
  * Provide define for largest message in file (#893)
  * Automatically break circular dependencies (#881)
  * Use static_assert keyword on MSVC in C89 mode (#843)
  * Fix comments generation for submessages (#788)
  * Fix handling of spaces in arguments passed through protoc (#810)
  * Fix problems with multiple files and mangle_names option (#783, #820)
  * Fix generator error when using M_STRIP_PACKAGE without package name (#795)
  * Fix compilation error with fixed size array and FT_POINTER (#630)
  * Fix wrong format in Python Poetry project file (#811)
  * Fix unnecessary generator message when using --quiet (#831)
  * Fix enum_to_string with C++ (#838)
  * Fix /* */ inside .proto file comment
  * Workaround python-protobuf version issues (#787)
  * Safeguard substraction in pb_read() with custom streams (#697)
  * Always include pb_release() as function, instead of macro. (#802)
  * Allow using = instead of : with generator option -s
  * Allow specifying include format without special characters (#810)
  * Allow including headers from inside of extern C (#814)
  * Add option NANOPB_PB2_TEMP_DIR to store nanopb_pb2.py in a temporary dir (#601)
  * Add compile-time error message for when PB_FIELD_32BIT is needed (#680, #827)
  * Add --c-style command line option for naming style (#199, #533, #791)
  * Add --protoc-opt to nanopb_generator.py (#628)
  * Add ENUMTYPE convenience macros (#803)
  * Generator: keep order of messages when possible

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=25
2023-11-17 07:33:09 +00:00
ae3b4781bb Accepting request 1063469 from devel:libraries:c_c++
- Revert back to 0.4.6 since 0.4.7 breaks nanopb_generator.py thus breaking
  some packages (e.g. Criterion: https://github.com/nanopb/nanopb/issues/845)

OBS-URL: https://build.opensuse.org/request/show/1063469
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=11
2023-02-07 17:48:55 +00:00
Paolo Stivanin
c399de699b - Revert back to 0.4.6 since 0.4.7 breaks nanopb_generator.py thus breaking
some packages (e.g. Criterion: https://github.com/nanopb/nanopb/issues/845)

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=23
2023-02-06 16:45:48 +00:00
Paolo Stivanin
117b155930 - Revert fix-missing-file.patch.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=22
2023-01-30 09:23:44 +00:00
Paolo Stivanin
f5ed558419 - Add fix-missing-file.patch (generator/proto/__init__.py).
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=21
2023-01-30 07:26:45 +00:00
24a8aeafc5 Accepting request 1061804 from devel:libraries:c_c++
- update to 0.4.7:
  * Fix comments generation for submessages
  * Fix handling of spaces in arguments passed through protoc
  * Fix problems with multiple files and mangle_names option
  * Fix generator error when using M_STRIP_PACKAGE without package name
  * Fix compilation error with fixed size array and FT_POINTER
  * Fix wrong format in Python Poetry project file
  * Fix unnecessary generator message when using --quiet
  * Fix enum_to_string with C++
 Fix /* */ inside .proto file comment
  * Workaround python-protobuf version issues
  * Safeguard substraction in pb_read() with custom streams
  * Always include pb_release() as function, instead of macro.
 Allow using = instead of : with generator option -s
  * Allow specifying include format without special characters
  * Allow including headers from inside of extern C
  * Add option NANOPB_PB2_TEMP_DIR to store nanopb_pb2.py in a temporary dir
  * Add compile-time error message for when PB_FIELD_32BIT is needed
  * Add --c-style command line option for naming style
  * Add --protoc-opt to nanopb_generator.py
  * Add ENUMTYPE convenience macros
  * Add Bazel build rules

- Add 'PB_ENABLE_MALLOC=1' so that we can build Criterion.

OBS-URL: https://build.opensuse.org/request/show/1061804
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=10
2023-01-29 13:11:03 +00:00
ecc364ef93 - update to 0.4.7:
* Fix comments generation for submessages
  * Fix handling of spaces in arguments passed through protoc
  * Fix problems with multiple files and mangle_names option
  * Fix generator error when using M_STRIP_PACKAGE without package name
  * Fix compilation error with fixed size array and FT_POINTER
  * Fix wrong format in Python Poetry project file
  * Fix unnecessary generator message when using --quiet
  * Fix enum_to_string with C++
 Fix /* */ inside .proto file comment
  * Workaround python-protobuf version issues
  * Safeguard substraction in pb_read() with custom streams
  * Always include pb_release() as function, instead of macro.
 Allow using = instead of : with generator option -s
  * Allow specifying include format without special characters
  * Allow including headers from inside of extern C
  * Add option NANOPB_PB2_TEMP_DIR to store nanopb_pb2.py in a temporary dir
  * Add compile-time error message for when PB_FIELD_32BIT is needed
  * Add --c-style command line option for naming style
  * Add --protoc-opt to nanopb_generator.py
  * Add ENUMTYPE convenience macros
  * Add Bazel build rules

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=19
2023-01-28 21:08:35 +00:00
7add085efe Accepting request 1056975 from home:polslinux:branches:devel:libraries:c_c++
- Add 'PB_ENABLE_MALLOC=1' so that we can build Criterion.

OBS-URL: https://build.opensuse.org/request/show/1056975
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=18
2023-01-28 21:05:08 +00:00
be7ec467d8 Accepting request 1002746 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1002746
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=9
2022-09-12 17:08:30 +00:00
4285685213 Accepting request 999996 from home:jengelh:branches:devel:libraries:c_c++
update

OBS-URL: https://build.opensuse.org/request/show/999996
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=16
2022-09-12 08:26:40 +00:00
28802d36d1 Accepting request 924224 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/924224
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=8
2021-10-11 13:31:19 +00:00
Michał Rostecki
c193de2183 Accepting request 923380 from home:jonapap
- Install nanopb also under /usr/bin/nanopb_generator.py - this fixes an
  error when using with protoc

OBS-URL: https://build.opensuse.org/request/show/923380
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=15
2021-10-08 13:20:16 +00:00
dbce1089f9 Accepting request 886295 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/886295
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=7
2021-04-17 21:25:08 +00:00
7a065effde Accepting request 885479 from home:susnux:branches:devel:libraries:c_c++
Fix for CVE-2021-21401 and CVE-2020-26243

OBS-URL: https://build.opensuse.org/request/show/885479
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=13
2021-04-17 14:12:54 +00:00
8c1fb38337 Accepting request 838741 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/838741
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=6
2020-09-30 17:55:18 +00:00
Michał Rostecki
898dd14da6 Accepting request 838705 from home:dirkmueller:branches:devel:libraries:c_c++
- update to 0.4.2:
  * Fix buffer overflow when encoding bytes with size set to 65535 (#547, GHSA-3p39-mfxg-hrq4)
  * Fix segfault with pointer fields and proto3_singular_msgs = true. (#504,#505)
  * Fix Windows 10 temp file handling (#486)
  * Fix macro name conflicts (ATMEGA32U4 UENUM and more) (#522)
  * Fix generator error with nested messages and default values (#487)
  * Fix nanopb_generator exception on enums with aliases (#535)
  * Fix compile error when struct members are called X or a (#492)
  * Fix sizeof(union ...) fallback not compiling with C++ (#415, #494)
  * Fix "missing required field" error with submessage callback (#544)
  * Fix field descriptor sizing with submsg_callback option (#545)
  * Fix protoc calling on Python 2 (#503)
  * Fix handling of varying NaN representations in PB_CONVERT_DOUBLE_FLOAT (#543)
  * Fix clang undefined behavior sanitizer errors.
  * Change generator to use Python 3 by default (#441, #509)
  * Binary packages updated to use Python 3 and grpcio-tools
  * Add support for infinity and nan floating-point defaults (#530, #538)
  * Add generator option sort_by_tag (#542)
  * Add type_override option to override type defined in .proto (#497)
  * Set proto2 enum fields to first value when no default is given, even if nonzero (#532,#539)
  * Include protoc-gen-nanopb in path in protoc wrapper script
  * Properly pass error status from protoc wrapper when calling binary protoc
  * Generator: pass --include_imports when calling protoc (#494)
  * Create intermediate directories when writing files to relative path (#512)
  * Add current directory to include path for protoc (#499)
  * Update readme to use nanopb_generator.py directly
  * Regression test for proto3 incorrectly considered empty (#504)
  * CMake: change package name to Nanopb for cmake 3.17 compatibility (#506)
  * CMake: remove find_package(PythonInterp) (#508)
  * CMake: use split --nanopb_opt only on protoc >= 3.6 (#515)

OBS-URL: https://build.opensuse.org/request/show/838705
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=11
2020-09-30 10:21:06 +00:00
8153c6a584 Accepting request 782946 from devel:libraries:c_c++
- Update to version 0.4.1:
  * Fix for CVE-2020-5235 - porential exploitable out of memory
    condition.
  * Fixes for AVR builds and tests. (forwarded request 782945 from mrostecki)

OBS-URL: https://build.opensuse.org/request/show/782946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=5
2020-03-09 14:23:02 +00:00
Michał Rostecki
e8c1c87bfd Accepting request 782945 from home:mrostecki:branches:devel:libraries:c_c++
- Update to version 0.4.1:
  * Fix for CVE-2020-5235 - porential exploitable out of memory
    condition.
  * Fixes for AVR builds and tests.

OBS-URL: https://build.opensuse.org/request/show/782945
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=9
2020-03-09 13:06:32 +00:00
5615de05be Accepting request 770509 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/770509
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=4
2020-02-06 12:09:43 +00:00
Michał Rostecki
4ba70de4ce Accepting request 768729 from home:scarabeus_iv:branches:devel:libraries:c_c++
- As we download the tags directly no need for services and we
  can fetch it using URL paths
- Do not build generators as those require python2 and we are
  removing that from the dsitribution
- Update to 0.4.0:
  * Make nanopb_generator automatically compile .proto files (#462)
  * Allow installing as Python package from pip (#460)
  * Use protoc from grpcio-tools Python package if available (#463)
  * Change proto3 message types to be optional (#308, #452)
  * Add pb_decode_ex(), pb_encode_ex() functions.
  * Automatically rebuild nanopb_pb2.py
  * Use plugin.proto that comes with python-protobuf (#234)

OBS-URL: https://build.opensuse.org/request/show/768729
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=7
2020-02-06 10:40:08 +00:00
1ef2ee2d54 Accepting request 757558 from devel:libraries:c_c++
- Update to version 0.3.9.4:
  * Publishing nanopb-0.3.9.4
  * Update changelog
  * Add test for PB_ENCODE_ARRAYS_UNPACKED
  * Fix "unused variable" warning when using PB_ENCODE_ARRAYS_UNPACKED
  * Fix undefined behavior with bool fields (#434)
  * Make fuzztest detect invalid bool values (#434)
  * .gitignore: don't ignore generator-bin files (#419)
  * Don't call stream callback with count=0 (#421)
  * network_server example: Detect count=0 in read_callback() (#421)
  * Add scons package to travis rules, for build automation
  * Introduce new compile time flag: PB_ENCODE_ARRAYS_UNPACKED
  * Add migration note about enum min/max
  * Use min/max enum value for min/max
  * Publishing nanopb-0.3.9.3
  * Fix generator error with mangle_names option (#380)
  * Add testcase for #380
  * Fix incorrect PB_STATIC_ASSERT for bytes inside oneof (#363)
  * Add testcase for #363
  * Generator: Allow comma separated options in plugin mode (#343)
  * Fix encoding of fixed size arrays inside proto3 submessages (#376)
  * Add regression test for issue #376 (forwarded request 757557 from mrostecki)

OBS-URL: https://build.opensuse.org/request/show/757558
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=3
2019-12-17 15:54:44 +00:00
Michał Rostecki
aaeafd9f7f Accepting request 757557 from home:mrostecki:branches:devel:kubic
- Update to version 0.3.9.4:
  * Publishing nanopb-0.3.9.4
  * Update changelog
  * Add test for PB_ENCODE_ARRAYS_UNPACKED
  * Fix "unused variable" warning when using PB_ENCODE_ARRAYS_UNPACKED
  * Fix undefined behavior with bool fields (#434)
  * Make fuzztest detect invalid bool values (#434)
  * .gitignore: don't ignore generator-bin files (#419)
  * Don't call stream callback with count=0 (#421)
  * network_server example: Detect count=0 in read_callback() (#421)
  * Add scons package to travis rules, for build automation
  * Introduce new compile time flag: PB_ENCODE_ARRAYS_UNPACKED
  * Add migration note about enum min/max
  * Use min/max enum value for min/max
  * Publishing nanopb-0.3.9.3
  * Fix generator error with mangle_names option (#380)
  * Add testcase for #380
  * Fix incorrect PB_STATIC_ASSERT for bytes inside oneof (#363)
  * Add testcase for #363
  * Generator: Allow comma separated options in plugin mode (#343)
  * Fix encoding of fixed size arrays inside proto3 submessages (#376)
  * Add regression test for issue #376

OBS-URL: https://build.opensuse.org/request/show/757557
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=5
2019-12-17 14:03:28 +00:00
133e9fa6f7 Accepting request 664676 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/664676
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=2
2019-01-15 08:16:39 +00:00
Michał Rostecki
6c91d67c0d Accepting request 664675 from home:mrostecki
- Enable PB_FIELD_16BIT setting to add support for tag numbers >
  255 and fields larger than 255 bytes.

OBS-URL: https://build.opensuse.org/request/show/664675
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=3
2019-01-11 14:21:38 +00:00
1c0da76213 Accepting request 657118 from devel:libraries:c_c++
- Update to version 0.3.9.2:
  * Update changelog & authors
  * Fix splint test error (#359)
  * Clarify the usage of callback fields inside oneof sections in the docs
  * cmake: Include CMAKE_INSTALL_LIBDIR in CMAKE_INSTALL_CMAKEDIR
  * cmake: Allow to build a shared library
  * Made some changes for Error Output.
  * Update README.md
  * Further test fail fix for Windows
- Initial release

OBS-URL: https://build.opensuse.org/request/show/657118
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nanopb?expand=0&rev=1
2018-12-13 18:48:46 +00:00
611be3392c Accepting request 656916 from home:mrostecki
- Update to version 0.3.9.2:
  * Update changelog & authors
  * Fix splint test error (#359)
  * Clarify the usage of callback fields inside oneof sections in the docs
  * cmake: Include CMAKE_INSTALL_LIBDIR in CMAKE_INSTALL_CMAKEDIR
  * cmake: Allow to build a shared library
  * Made some changes for Error Output.
  * Update README.md
  * Further test fail fix for Windows
- Initial release

OBS-URL: https://build.opensuse.org/request/show/656916
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nanopb?expand=0&rev=1
2018-12-11 00:08:16 +00:00