Nanopb

Latest version: v0.4.8

Safety actively analyzes 622275 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 9

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)
Remove pkg_resources import to avoid deprecation warning (887)
Use static_assert keyword on MSVC in C89 mode (843)
platformio: Allow substitutions in custom_nanopb_protos (882)
CMakeLists: Add missing __init__.py to generator install (841)
CMakeLists: Add nanopb_PYTHON_INSTDIR_OVERRIDE (875)
CMakeLists: Rename installation directories (845, 907)
FindNanopb.cmake: Fix regression bug with relative include path (888)
FindNanopb.cmake: Ensure generator files are updated when cached (847)
FindNanopb.cmake: Fix generator call on Windows (874)
Bazel: multiple build rule fixes and updates (855, 891, 904, 906, 919)

0.4.7

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)
Add Bazel build rules (360, 500)
Generator: keep order of messages when possible
Test case improvements (792)
PlatformIO build rule improvements (808, 809, 819, 834, 839, 840)
CMake build rule improvements (822)
CMakeLists: use protoc wrapper script by default (769)

0.4.6

Fix passing of error message from substream callback (703)
Fix comments going to wrong member variables (701)
Fix regression in 0.4.3 where generator did not find all dependencies (720)
Fix FindNanopb.cmake not finding options file (659)
Fix double-definition errors with size_union (692)
Fix generator error with same inner message name (746)
Fix infinite recursion in generator/protoc script (762)
Fix unicode comment handling for Python 2 (740)
Fix compiler warnings with PB_BUFFER_ONLY (717)
Fix options dependency in nanopb.mk (666)
Fix handling of filenames with dot in them in FindNanopb.cmake (756)
Add fallback_type option (772, 773)
Use C11 static assert mechanism by default (761, 766)
Use 'static_assert' keyword for iar (679)
Explicitly check for pItem == NULL to satisfy Xcode analyzer (667, 674)
Support --proto-path as alias to -I (749)
Refactor name mangling to separate class, improve error messages (735)
Move PB_WT_PACKED definition to the header to fix compiler warnings (671)
FindNanopb.cmake: use --nanopb_opt for option passing by default (752)
FindNanopb.cmake: Add option NANOPB_GENERATE_CPP_STANDALONE (741)
FindNanopb.cmake: Add PROTOC_OPTIONS variable (768, 771)
CMakeLists: add build interface for using as a submodule (669)
CMakeLists: fix error with nanopb_BUILD_GENERATOR=OFF (764)
CMakeLists: make more uniform (676)
CMakeLists: Fix uninitialized PYTHON_INSTDIR (652)
Clean up CMake examples (741)
Rebuild nanopb_pb2.py and print version numbers on import failure (733, 742)
Use memcpy instead of iterating on buf_read/write (751)
Add generator support for PlatformIO (718)
Add clean target to generator/proto/Makefile (681)
Windows .bats: use standard python invocation instead of py.exe launcher (657)
Fix problems running tests with newer SCons version
Improve handling of varint overflows
Improve optimization for little-endian platforms

NOTE: During development, prereleases were published on PlatformIO registry
as versions 0.4.6 - 0.4.6.3. The version 0.4.6.4 on PlatformIO corresponds
to the real final 0.4.6 release.

0.4.5

Fix invalid free() with oneof (647, GHSA-7mv5-5mxh-qg88)
Fix unordered field numbers inside oneof causing fields to be ignored (617)
Fix pb_decode() not initializing fields inside oneof (635
Fix compiler errors with complex oneof hierarchy and sizeof() (610)
Fix descriptor width calculation for 64-bit types (644)
Fix compiler error in generated initializer for submessage callback (631)
Fix duplicate union definition in generated file (637)
Fix test case build error on SCons 4.1.0
Pip package: include nanopb_pb2.py (629)
Make generator consider dependencies recursively (610)
Bazel build system updates (633)
Add support for including comments from .proto file (85, 645)

0.4.4

Not secure
Fix memory leak with oneofs and PB_ENABLE_MALLOC (615, GHSA-85rr-4rh9-hhwh)
Fix generator error when oneof contains a single unresolved field size (610)
Fix unsigned enums not working correctly inside OneOf (611)
Fix recursion depth exceeded error in generator (493)
Add '--version' option to nanopb_generator.py (607)
Add support for proto3 optional fields introduced in protoc 3.12 (591)
Add better error message when enum type is not found (592)
Allow specifying descriptorsize on field level also (546)
Allow multiple targets to be created by calling NANOPB_GENERATE_CPP() (596)
Conanfile: Add protobuf-nanopb library to cpp_info.libs (605)
Include version number in generator verbose output
Convert documentation to markdown format (587)
Remove outdated transitional generator/nanopb/options.proto.
Test case improvements
Documentation improvements

0.4.3

Not secure
Fix generator error when output is in current directory (553)
Fix issue with unknown message sizes being referred inside oneof encoded size calculation (569)
Fix problem with [default=xxxx, (nanopb).proto3=true] field option combination (558)
Fix cross compilation with Conan build system (568)
Better support C++ types in generated structs (577)
CMake rule improvements (554, 555, 556, 561, 564)
Generator: fix compatibility bug with Python 3.1 and earlier
Make Linux and Mac packages use grpcio protoc
Make pb_decode_varint32() reject overlong varint encodings.
Performance optimizations
Test case improvements
Documentation improvements

NOTE: version 0.4.3 changes layout of pb_msgdesc_t. It requires recompiling .pb.c files and
thus breaks ABI compatibility. In general, ABI compatibility is not currently maintained
between any nanopb versions.

NOTE: There was an apparent false positive virus identification by Windows Defender of the
PyInstaller 3.6 based Windows package nanopb-0.4.3-windows-x86.zip. The package was replaced
by nanopb-0.4.3-p1-windows-x86.zip with rebuilt PyInstaller 4.0, which seems to avoid the problem.
Actual nanopb code is unchanged between the packages.

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.