2026-01-14 23:31 ftp://ftp.de.debian.org/debian/pool/main/r/ros2-osrf-testing-tools-cpp/ros2-osrf-testing-tools-cpp_2.2.0+ds.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=googletest --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j10 platform: Linux-6.17.12+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.11 client-version: 1.3.69 compiler: g++ (Debian 15.2.0-12) 15.2.0 cppcheck: head 2.19.0 head-info: 367e4379 (2026-01-14 17:16:12 +0100) count: 56 56 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/initialize.cpp:42:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable quiet [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service.cpp:36:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ignored [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service.cpp:58:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable memory_function_type [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service.cpp:64:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable memory_function_type [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service.cpp:81:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ignored [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service.cpp:87:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ignored [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service.cpp:93:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable should_print_backtrace [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service.cpp:100:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lazy_stack_trace [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service.cpp:116:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable source_function_name [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:35:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable function [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:45:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable filename [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:55:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable line [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:65:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable col [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:86:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable addr [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:96:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable idx [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:106:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable object_filename [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:116:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable object_function [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:126:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable source_location [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:136:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inlined_source_locations [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:153:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable thread_id [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:163:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable traces [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace.cpp:175:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable traces [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/count_function_occurrences_in_backtrace.hpp:74:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MaxBacktraceSize [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/verbosity.cpp:47:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable quiet [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/is_working.cpp:38:10: warning: If memory allocation fails, then there is a possible null pointer dereference: some_memory [nullPointerOutOfMemory] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/is_working.cpp:32:35: note: Assuming allocation function fails osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/is_working.cpp:32:35: note: Assignment 'some_memory=std::malloc(1024)', assigned value is 0 osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/is_working.cpp:38:10: note: Null pointer dereference osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/is_working.cpp:39:31: warning: If memory allocation fails, then there is a possible null pointer dereference: some_memory [nullPointerOutOfMemory] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/is_working.cpp:32:35: note: Assuming allocation function fails osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/is_working.cpp:32:35: note: Assignment 'some_memory=std::malloc(1024)', assigned value is 0 osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/is_working.cpp:39:31: note: Null pointer dereference osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/is_working.cpp:39:10: style: C-style pointer casting [cstyleCast] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service_impl.hpp:30:3: warning: Member variable 'MemoryToolsServiceImpl::ignored' is not initialized in the constructor. [uninitMemberVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service_impl.hpp:30:3: warning: Member variable 'MemoryToolsServiceImpl::should_print_backtrace' is not initialized in the constructor. [uninitMemberVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/test_runner/parse_environment_variable.hpp:40:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/test/test_runner/assert_env_vars.cpp:54:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/impl/unix_common.cpp:58:45: warning: Redundant code: Found unused function. [constStatement] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/impl/unix_common.cpp:75:45: warning: Redundant code: Found unused function. [constStatement] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/print_backtrace.hpp:43:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MaxStackDepth [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/impl/unix_common.cpp:92:45: warning: Redundant code: Found unused function. [constStatement] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp:69:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Malloc [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/impl/unix_common.cpp:112:45: warning: Redundant code: Found unused function. [constStatement] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp:100:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp:139:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Realloc [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp:173:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp:211:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Calloc [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp:246:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp:284:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Free [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/custom_memory_functions.cpp:313:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/test/memory_tools/test_memory_tools.cpp:247:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_align_t [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/test_runner/execute_process.hpp:122:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/test_runner/main.cpp:66:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/stack_trace_impl.hpp:70:32: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/test_runner/starts_with.hpp:36:13: performance: Range variable 'prefix' should be declared as const reference. [iterateByValue] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/test/test_runner/assert_env_vars.cpp:41:13: performance: Range variable 'arg' should be declared as const reference. [iterateByValue] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/test/test_runner/assert_env_vars.cpp:52:13: performance: Range variable 'arg' should be declared as const reference. [iterateByValue] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/test_runner/starts_with.hpp:36:3: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service_factory.hpp:42:3: style:inconclusive: Technically the member function 'osrf_testing_tools_cpp::memory_tools::MemoryToolsServiceFactory::should_ignore' can be const. [functionConst] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/memory_tools/memory_tools_service_factory.hpp:48:3: style:inconclusive: Technically the member function 'osrf_testing_tools_cpp::memory_tools::MemoryToolsServiceFactory::should_print_backtrace' can be const. [functionConst] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/test_runner/main.cpp:51:13: performance: Range variable 'arg' should be declared as const reference. [iterateByValue] osrf_testing_tools_cpp-2.2.0/osrf_testing_tools_cpp/src/test_runner/main.cpp:64:13: performance: Range variable 'arg' should be declared as const reference. [iterateByValue] diff: DONE