2025-11-16 23:11 ftp://ftp.de.debian.org/debian/pool/main/s/statsprocessor/statsprocessor_0.11+git20160316.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j90 platform: Linux-6.8.0-87-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.18.0 head-info: 2ad4620 (2025-11-14 19:45:56 +0100) count: 23 23 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: src/sp.c:286:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] src/sp.c:376:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] src/sp.c:497:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] src/sp.c:791:5: warning: If memory allocation fails, then there is a possible null pointer dereference: root_table_buf [nullPointerOutOfMemory] src/sp.c:754:62: note: Assuming allocation function fails src/sp.c:754:36: note: Assignment 'root_table_buf=(struct hcstat_table_t*)calloc(root_cnt,sizeof(struct hcstat_table_t))', assigned value is 0 src/sp.c:791:5: note: Null pointer dereference src/sp.c:792:5: warning: If memory allocation fails, then there is a possible null pointer dereference: root_table_buf [nullPointerOutOfMemory] src/sp.c:754:62: note: Assuming allocation function fails src/sp.c:754:36: note: Assignment 'root_table_buf=(struct hcstat_table_t*)calloc(root_cnt,sizeof(struct hcstat_table_t))', assigned value is 0 src/sp.c:792:5: note: Null pointer dereference src/sp.c:799:5: warning: If memory allocation fails, then there is a possible null pointer dereference: markov_table_buf [nullPointerOutOfMemory] src/sp.c:767:64: note: Assuming allocation function fails src/sp.c:767:38: note: Assignment 'markov_table_buf=(struct hcstat_table_t*)calloc(markov_cnt,sizeof(struct hcstat_table_t))', assigned value is 0 src/sp.c:799:5: note: Null pointer dereference src/sp.c:800:5: warning: If memory allocation fails, then there is a possible null pointer dereference: markov_table_buf [nullPointerOutOfMemory] src/sp.c:767:64: note: Assuming allocation function fails src/sp.c:767:38: note: Assignment 'markov_table_buf=(struct hcstat_table_t*)calloc(markov_cnt,sizeof(struct hcstat_table_t))', assigned value is 0 src/sp.c:800:5: note: Null pointer dereference src/sp.c:648:20: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] src/sp.c:638:50: note: Assuming allocation function fails src/sp.c:638:30: note: Assignment 'root_stats_buf=(uint64_t*)calloc(root_cnt,sizeof(uint64_t))', assigned value is 0 src/sp.c:640:30: note: Assignment 'root_stats_ptr=root_stats_buf', assigned value is 0 src/sp.c:648:20: note: Null pointer addition src/sp.c:665:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] src/sp.c:653:52: note: Assuming allocation function fails src/sp.c:653:32: note: Assignment 'markov_stats_buf=(uint64_t*)calloc(markov_cnt,sizeof(uint64_t))', assigned value is 0 src/sp.c:655:32: note: Assignment 'markov_stats_ptr=markov_stats_buf', assigned value is 0 src/sp.c:665:24: note: Null pointer addition src/sp.c:764:20: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] src/sp.c:754:62: note: Assuming allocation function fails src/sp.c:754:36: note: Assignment 'root_table_buf=(struct hcstat_table_t*)calloc(root_cnt,sizeof(struct hcstat_table_t))', assigned value is 0 src/sp.c:756:36: note: Assignment 'root_table_ptr=root_table_buf', assigned value is 0 src/sp.c:764:20: note: Null pointer addition src/sp.c:779:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] src/sp.c:767:64: note: Assuming allocation function fails src/sp.c:767:38: note: Assignment 'markov_table_buf=(struct hcstat_table_t*)calloc(markov_cnt,sizeof(struct hcstat_table_t))', assigned value is 0 src/sp.c:769:38: note: Assignment 'markov_table_ptr=markov_table_buf', assigned value is 0 src/sp.c:779:24: note: Null pointer addition src/sp.c:856:14: style: Local variable 'c' shadows outer variable [shadowVariable] src/sp.c:518:7: note: Shadowed declaration src/sp.c:856:14: note: Shadow variable src/sp.c:412:19: style: Variable 'b1' can be declared as pointer to const [constVariablePointer] src/sp.c:413:19: style: Variable 'b2' can be declared as pointer to const [constVariablePointer] src/sp.c:472:13: style: Variable 'output_file' can be declared as pointer to const [constVariablePointer] src/sp.c:495:17: style: Variable 'long_options' can be declared as const array [constVariable] src/sp.c:566:9: style: Variable 'hcstat' can be declared as pointer to const [constVariablePointer] src/sp.c:715:17: style: Variable 'in' can be declared as pointer to const [constVariablePointer] src/sp.c:726:17: style: Variable 'in' can be declared as pointer to const [constVariablePointer] src/sp.c:879:18: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] src/sp.c:885:11: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] src/sp.c:1072:17: style: Variable 'r_ctx_max' is assigned a value that is never used. [unreadVariable] src/sp.c:1075:15: style: Variable 'l_ctx_min' is assigned a value that is never used. [unreadVariable] diff: DONE