2024-04-25 01:34 ftp://ftp.de.debian.org/debian/pool/main/h/haskell-bz2/haskell-bz2_1.0.1.0.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 -j4 platform: Linux-6.6.25_1-x86_64-with-libc python: 3.12.3 client-version: 1.3.57 compiler: g++ (GCC) 13.2.0 cppcheck: head 2.14.0 head-info: 94f28a2 (2024-04-24 20:47:54 +0200) count: 34 34 elapsed-time: 4.1 4.1 head-timing-info: old-timing-info: head results: bz2-1.0.1.0/cbits/blocksort.c:230:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/blocksort.c:767:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/blocksort.c:1070:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/decompress.c:239:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/bzlib.c:43:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/bzlib.c:827:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/bzlib.c:909:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/bzlib.c:1422:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/bzlib.c:1529:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/compress.c:262:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/compress.c:612:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bz2-1.0.1.0/cbits/huffman.c:101:38: warning: Either the condition 'nHeap<(258+2)' is redundant or the array 'heap[260]' is accessed at index 260, which is out of bounds. [arrayIndexOutOfBoundsCond] bz2-1.0.1.0/cbits/huffman.c:98:7: note: Assuming that condition 'nHeap<(258+2)' is not redundant bz2-1.0.1.0/cbits/huffman.c:101:38: note: Array index out of bounds bz2-1.0.1.0/cbits/huffman.c:153:33: style: Parameter 'length' can be declared as pointer to const [constParameterPointer] bz2-1.0.1.0/cbits/huffman.c:173:40: style: Parameter 'length' can be declared as pointer to const [constParameterPointer] bz2-1.0.1.0/cbits/blocksort.c:33:35: style: Parameter 'eclass' can be declared as pointer to const [constParameterPointer] bz2-1.0.1.0/cbits/blocksort.c:349:24: style: Parameter 'block' can be declared as pointer to const [constParameterPointer] bz2-1.0.1.0/cbits/blocksort.c:350:24: style: Parameter 'quadrant' can be declared as pointer to const [constParameterPointer] bz2-1.0.1.0/cbits/bzlib.c:157:8: style: Condition '!bz_config_ok()' is always false [knownConditionTrueFalse] bz2-1.0.1.0/cbits/bzlib.c:157:21: note: Calling function 'bz_config_ok' returns 1 bz2-1.0.1.0/cbits/bzlib.c:157:8: note: Condition '!bz_config_ok()' is always false bz2-1.0.1.0/cbits/bzlib.c:499:8: style: Condition '!bz_config_ok()' is always false [knownConditionTrueFalse] bz2-1.0.1.0/cbits/bzlib.c:499:21: note: Calling function 'bz_config_ok' returns 1 bz2-1.0.1.0/cbits/bzlib.c:499:8: note: Condition '!bz_config_ok()' is always false bz2-1.0.1.0/cbits/bzlib.c:1210:25: warning: Either the condition 'bzf!=NULL' is redundant or there is possible null pointer dereference: bzf. [nullPointerRedundantCheck] bz2-1.0.1.0/cbits/bzlib.c:1209:12: note: Assuming that condition 'bzf!=NULL' is not redundant bz2-1.0.1.0/cbits/bzlib.c:1210:25: note: Null pointer dereference bz2-1.0.1.0/cbits/bzlib.c:1236:15: warning: Either the condition 'bzf!=NULL' is redundant or there is possible null pointer dereference: bzf. [nullPointerRedundantCheck] bz2-1.0.1.0/cbits/bzlib.c:1235:4: note: Assuming that condition 'bzf!=NULL' is not redundant bz2-1.0.1.0/cbits/bzlib.c:1236:15: note: Null pointer dereference bz2-1.0.1.0/cbits/bzlib.c:1237:14: warning: Either the condition 'bzf!=NULL' is redundant or there is possible null pointer dereference: bzf. [nullPointerRedundantCheck] bz2-1.0.1.0/cbits/bzlib.c:1235:4: note: Assuming that condition 'bzf!=NULL' is not redundant bz2-1.0.1.0/cbits/bzlib.c:1237:14: note: Null pointer dereference bz2-1.0.1.0/cbits/bzlib.c:102:31: style: Parameter 'opaque' can be declared as pointer to const. However it seems that 'default_bzalloc' is a callback function, if 'opaque' is declared with const you might also need to cast function pointer(s). [constParameterCallback] bz2-1.0.1.0/cbits/bzlib.c:505:47: note: You might need to cast the function pointer here bz2-1.0.1.0/cbits/bzlib.c:102:31: note: Parameter 'opaque' can be declared as pointer to const bz2-1.0.1.0/cbits/bzlib.c:139:27: style: Parameter 's' can be declared as pointer to const [constParameterPointer] bz2-1.0.1.0/cbits/bzlib.c:687:54: style: Parameter 'cftab' can be declared as pointer to const [constParameterPointer] bz2-1.0.1.0/cbits/bzlib.c:1506:34: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] bz2-1.0.1.0/cbits/bzlib.c:446:19: style: Variable 'progress' is assigned a value that is never used. [unreadVariable] bz2-1.0.1.0/cbits/compress.c:403:14: error: Array 'fave[6]' accessed at index -1, which is out of bounds. [negativeIndex] bz2-1.0.1.0/cbits/compress.c:399:32: note: Assignment 'bt=-1', assigned value is -1 bz2-1.0.1.0/cbits/compress.c:400:24: note: Assuming condition is false bz2-1.0.1.0/cbits/compress.c:403:14: note: Negative array index bz2-1.0.1.0/cbits/compress.c:150:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] bz2-1.0.1.0/cbits/compress.c:151:11: style: Variable 'block' can be declared as pointer to const [constVariablePointer] bz2-1.0.1.0/cbits/compress.c:259:12: style: Variable 'mtfv' can be declared as pointer to const [constVariablePointer] bz2-1.0.1.0/cbits/compress.c:557:20: style: Variable 's_len_sel_selCtr' can be declared as pointer to const [constVariablePointer] bz2-1.0.1.0/cbits/compress.c:559:20: style: Variable 's_code_sel_selCtr' can be declared as pointer to const [constVariablePointer] bz2-1.0.1.0/cbits/compress.c:225:13: style: Variable 'zPend' is assigned a value that is never used. [unreadVariable] diff: DONE