This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a change to branch feature/remove_sprintf_usage
in repository https://gitbox.apache.org/repos/asf/celix.git
from d057ce8d Replace sprintf usage with snprintf or asprintf
add 32e30009 Refactor pubsubProtocol_encodeMetadata for improved handling
and remove of sprintf usage
add b43e1841 Add extra content size output argument for encoding metadata
in the pubsub protocols
add 824d63c8 Improve existing buffer handling for the pubsub protocol
encoding of headers and footers
add 2b720bd6 Replaces use of snprintf for asprint in deployment_admin.c
add c809a00d Add check to asprintf return
add 76aa019c Add __attribute__((format)) usage and add -Wformat=2 compile
flag
add 79517568 Improve and add some missing handling of snprintf return
values
No new revisions were added by this update.
Summary of changes:
CMakeLists.txt | 8 +-
bundles/deployment_admin/src/deployment_admin.c | 30 +--
.../log_service_api/include/celix_log_service.h | 36 ++-
.../gtest/src/SyslogWriterTestSuite.cc | 2 +-
.../pubsub_admin_tcp/src/pubsub_tcp_handler.c | 14 +-
.../pubsub_admin_zmq/src/pubsub_zmq_topic_sender.c | 15 +-
.../pubsub_protocol_lib/gtest/CMakeLists.txt | 9 +-
.../gtest/src/PS_WP_common_tests.cc | 278 +++++++++++++++++++--
.../pubsub_protocol_lib/gtest/src/main.cc | 26 --
.../include/pubsub_wire_protocol_common.h | 22 +-
.../src/pubsub_wire_protocol_common.c | 199 +++++++--------
.../gtest/src/PS_WP_tests.cc | 35 ++-
.../src/pubsub_wire_protocol_impl.c | 8 +-
.../src/pubsub_wire_protocol_impl.h | 2 +-
.../gtest/src/PS_WP_v2_tests.cc | 63 +++++
.../src/pubsub_wire_v2_protocol_impl.c | 12 +-
.../src/pubsub_wire_v2_protocol_impl.h | 2 +-
.../pubsub/pubsub_spi/include/pubsub_protocol.h | 88 ++++---
.../discovery_common/src/discovery_activator.c | 19 +-
.../src/endpoint_discovery_server.c | 9 +-
.../tms_tst/disc_mock/disc_mock_activator.c | 17 +-
libs/dfi/src/avrobin_serializer.c | 6 +-
libs/framework/include/celix_bundle_context.h | 12 +-
libs/framework/include/celix_log.h | 32 ++-
libs/framework/src/bundle_context.c | 2 +-
libs/framework/src/framework.c | 6 +-
libs/utils/src/version_range.c | 34 +--
27 files changed, 672 insertions(+), 314 deletions(-)
delete mode 100644
bundles/pubsub/pubsub_protocol/pubsub_protocol_lib/gtest/src/main.cc