2026-05-03 04:40 ftp://ftp.de.debian.org/debian/pool/main/libh/libhdr-histogram/libhdr-histogram_0.11.8.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 39 42 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: HdrHistogram_c-0.11.8/examples/hdr_decoder.c:32:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/examples/hiccup.c:42:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pollfd [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/examples/hiccup.c:107:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/examples/hiccup.c:128:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/src/hdr_encoding.c:207:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/src/hdr_encoding.c:272:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/src/hdr_encoding.c:313:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/src/hdr_encoding.c:19:35: error: Shifting signed 64-bit value by 63 bits is undefined behaviour [shiftTooManyBitsSigned] HdrHistogram_c-0.11.8/src/hdr_atomic.h:142:2: error: #error "Unable to determine atomic operations for your platform" [preprocessorErrorDirective] HdrHistogram_c-0.11.8/src/hdr_endian.h:112:3: error: #error platform not supported [preprocessorErrorDirective] HdrHistogram_c-0.11.8/src/hdr_thread.c:18:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hdr_mutex [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/src/hdr_thread.c:104:12: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] HdrHistogram_c-0.11.8/test/hdr_atomic_test.c:35:14: style: Variable 's' can be declared as pointer to const [constVariablePointer] HdrHistogram_c-0.11.8/test/hdr_histogram_atomic_test.c:138:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_atomic_test.c:152:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_benchmark.cpp:131:21: style: C-style pointer casting [cstyleCast] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:276:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:580:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:674:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HDR_LOG_INVALID_VERSION [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:766:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:813:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:853:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:897:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:909:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:939:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:69:13: style: Obsolescent function 'ctime_r' called. It is recommended to use 'strftime' instead. [prohibitedctime_rCalled] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:70:13: style: Obsolescent function 'ctime_r' called. It is recommended to use 'strftime' instead. [prohibitedctime_rCalled] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:84:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:381:26: note: Assuming allocation function fails HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:381:26: note: Assignment 'output=calloc(sizeof(char),output_len)', assigned value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:384:54: note: Calling function 'compare_string', 2nd argument 'output' value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:84:20: note: Null pointer dereference HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:89:29: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:381:26: note: Assuming allocation function fails HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:381:26: note: Assignment 'output=calloc(sizeof(char),output_len)', assigned value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:384:54: note: Calling function 'compare_string', 2nd argument 'output' value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:84:28: note: Assuming condition is false HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:89:29: note: Null pointer dereference HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:304:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: decoded [nullPointerOutOfMemory] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:299:21: note: Assuming allocation function fails HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:299:21: note: Assignment 'decoded=calloc(decoded_len,sizeof(uint8_t))', assigned value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:304:5: note: Null pointer dereference HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:334:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: decoded [nullPointerOutOfMemory] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:329:21: note: Assuming allocation function fails HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:329:21: note: Assignment 'decoded=calloc(decoded_len,sizeof(uint8_t))', assigned value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:334:5: note: Null pointer dereference HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:534:13: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:520:21: note: Assuming allocation function fails HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:520:21: note: Assignment 'log_file=fopen(file_name,"w+")', assigned value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:523:5: note: Assuming condition is false HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:534:13: note: Null pointer dereference HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:666:13: warning: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:665:21: note: Assuming allocation function fails HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:665:21: note: Assignment 'log_file=fopen(file_name,"w+")', assigned value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:666:13: note: Null pointer dereference HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:676:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:670:21: note: Assuming allocation function fails HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:670:21: note: Assignment 'log_file=fopen(file_name,"r")', assigned value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:674:5: note: Assuming condition is false HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:676:12: note: Null pointer dereference HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:46:44: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:46:61: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] HdrHistogram_c-0.11.8/test/hdr_histogram_perf.c:77:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_test.c:138:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] HdrHistogram_c-0.11.8/test/hdr_histogram_test.c:152:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diff: 2.20.0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:537:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:520:21: note: Assuming allocation function fails HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:520:21: note: Assignment 'log_file=fopen(file_name,"w+")', assigned value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:523:5: note: Assuming condition is false HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:537:12: note: Null pointer dereference 2.20.0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:614:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:608:21: note: Assuming allocation function fails HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:608:21: note: Assignment 'log_file=fopen(file_name,"w+")', assigned value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:614:12: note: Null pointer dereference 2.20.0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:668:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:665:21: note: Assuming allocation function fails HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:665:21: note: Assignment 'log_file=fopen(file_name,"w+")', assigned value is 0 HdrHistogram_c-0.11.8/test/hdr_histogram_log_test.c:668:12: note: Null pointer dereference DONE