2026-07-25 01:09 ftp://ftp.de.debian.org/debian/pool/main/p/pytsk/pytsk_20250801.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 -j1 platform: Linux-6.12.90+deb13.1-amd64-x86_64-with-glibc2.41 python: 3.12.13 client-version: 1.4.0 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.21.0 head-info: 1ef5ef3 (2026-07-24 19:54:54 +0200) count: 46 47 elapsed-time: 0.5 0.2 head-timing-info: old-timing-info: head results: pytsk-20250801/class.cpp:26:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __Object [valueFlowBailoutIncompleteVar] pytsk-20250801/error.cpp:104:10: style: C-style pointer casting [cstyleCast] pytsk-20250801/error.cpp:108:21: style: C-style pointer casting [cstyleCast] pytsk-20250801/error.cpp:113:23: style: C-style pointer casting [cstyleCast] pytsk-20250801/error.cpp:119:12: style: C-style pointer casting [cstyleCast] pytsk-20250801/error.cpp:62:55: style:inconclusive: Function 'aff4_raise_errors' argument 2 names different: declaration 'string' definition 'reason'. [funcArgNamesDifferent] pytsk-20250801/aff4_errors.h:45:55: note: Function 'aff4_raise_errors' argument 2 names different: declaration 'string' definition 'reason'. pytsk-20250801/error.cpp:62:55: note: Function 'aff4_raise_errors' argument 2 names different: declaration 'string' definition 'reason'. pytsk-20250801/error.cpp:100:47: style:inconclusive: Function 'aff4_get_current_error' argument 1 names different: declaration 'error_str' definition 'error_buffer'. [funcArgNamesDifferent] pytsk-20250801/aff4_errors.h:70:47: note: Function 'aff4_get_current_error' argument 1 names different: declaration 'error_str' definition 'error_buffer'. pytsk-20250801/error.cpp:100:47: note: Function 'aff4_get_current_error' argument 1 names different: declaration 'error_str' definition 'error_buffer'. pytsk-20250801/error.cpp:86:25: error: Uninitialized variable: tmp [legacyUninitvar] pytsk-20250801/talloc/talloc.c:320:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pytsk-20250801/talloc/talloc.c:611:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] pytsk-20250801/talloc/talloc.c:1619:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] pytsk-20250801/talloc/talloc.c:2111:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pytsk-20250801/talloc/talloc.c:2121:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pytsk-20250801/talloc/talloc.c:624:2: error: Memory leak: ptr [memleak] pytsk-20250801/talloc/talloc.c:997:7: warning: Either the condition 'tc' is redundant or there is possible null pointer dereference: tc. [nullPointerRedundantCheck] pytsk-20250801/talloc/talloc.c:996:3: note: Assuming that condition 'tc' is not redundant pytsk-20250801/talloc/talloc.c:997:7: note: Null pointer dereference pytsk-20250801/talloc/talloc.c:1097:8: warning: Either the condition 'tc' is redundant or there is possible null pointer dereference: tc. [nullPointerRedundantCheck] pytsk-20250801/talloc/talloc.c:1096:4: note: Assuming that condition 'tc' is not redundant pytsk-20250801/talloc/talloc.c:1097:8: note: Null pointer dereference pytsk-20250801/talloc/talloc.c:1117:7: warning: Either the condition 'tc' is redundant or there is possible null pointer dereference: tc. [nullPointerRedundantCheck] pytsk-20250801/talloc/talloc.c:1116:3: note: Assuming that condition 'tc' is not redundant pytsk-20250801/talloc/talloc.c:1117:7: note: Null pointer dereference pytsk-20250801/talloc/talloc.c:835:10: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] pytsk-20250801/talloc/talloc.c:1356:6: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] pytsk-20250801/talloc/talloc.c:1908:7: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] pytsk-20250801/talloc/talloc.c:1916:7: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] pytsk-20250801/talloc/talloc.c:2014:18: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] pytsk-20250801/talloc/talloc.c:761:61: style:inconclusive: Function '_talloc_set_destructor' argument 2 names different: declaration '_destructor' definition 'destructor'. [funcArgNamesDifferent] pytsk-20250801/talloc/talloc.h:357:52: note: Function '_talloc_set_destructor' argument 2 names different: declaration '_destructor' definition 'destructor'. pytsk-20250801/talloc/talloc.c:761:61: note: Function '_talloc_set_destructor' argument 2 names different: declaration '_destructor' definition 'destructor'. pytsk-20250801/talloc/talloc.c:1849:62: style:inconclusive: Function '_talloc_move' argument 2 names different: declaration 'pptr' definition '_pptr'. [funcArgNamesDifferent] pytsk-20250801/talloc/talloc.h:416:53: note: Function '_talloc_move' argument 2 names different: declaration 'pptr' definition '_pptr'. pytsk-20250801/talloc/talloc.c:1849:62: note: Function '_talloc_move' argument 2 names different: declaration 'pptr' definition '_pptr'. pytsk-20250801/talloc/talloc.c:2569:45: style:inconclusive: Function 'talloc_get_size' argument 1 names different: declaration 'ctx' definition 'context'. [funcArgNamesDifferent] pytsk-20250801/talloc/talloc.h:1048:36: note: Function 'talloc_get_size' argument 1 names different: declaration 'ctx' definition 'context'. pytsk-20250801/talloc/talloc.c:2569:45: note: Function 'talloc_get_size' argument 1 names different: declaration 'ctx' definition 'context'. pytsk-20250801/talloc/talloc.c:2588:54: style:inconclusive: Function 'talloc_find_parent_byname' argument 1 names different: declaration 'ctx' definition 'context'. [funcArgNamesDifferent] pytsk-20250801/talloc/talloc.h:783:45: note: Function 'talloc_find_parent_byname' argument 1 names different: declaration 'ctx' definition 'context'. pytsk-20250801/talloc/talloc.c:2588:54: note: Function 'talloc_find_parent_byname' argument 1 names different: declaration 'ctx' definition 'context'. pytsk-20250801/talloc/talloc.c:423:23: style: Variable 'tc' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:446:23: style: Variable 'tc' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:855:8: style: Variable 'next_tc' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1190:34: style: Variable 'h' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1249:23: style: Variable 'tc_p' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1249:38: style: Variable 'tc_c' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1250:8: style: Variable 'new_parent' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1355:23: style: Variable 'tc' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1442:15: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] pytsk-20250801/talloc/talloc.c:1633:10: style: Variable 'next_tc' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1695:24: style: Variable 'pool_tc' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1696:9: style: Variable 'next_tc' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1930:30: style: Variable 'pool_hdr' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1974:34: style: Variable 'h' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:2027:23: style: Variable 'tc' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:2544:45: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'talloc_autofree_destructor' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pytsk-20250801/talloc/talloc.c:2563:3: note: You might need to cast the function pointer here pytsk-20250801/talloc/talloc.c:2544:45: note: Parameter 'ptr' can be declared as pointer to const pytsk-20250801/talloc/talloc.c:2571:23: style: Variable 'tc' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:2677:26: style: Variable 'l' can be declared as pointer to const [constVariablePointer] pytsk-20250801/talloc/talloc.c:1068:18: style: Variable 'ctx_size' is assigned a value that is never used. [unreadVariable] pytsk-20250801/tsk3.h:25:2: error: #error Missing libtsk header [preprocessorErrorDirective] diff: head pytsk-20250801/error.cpp:86:25: error: Uninitialized variable: tmp [legacyUninitvar] 2.21.0 pytsk-20250801/error.cpp:86:25: warning: Uninitialized variable: tmp [uninitvar] pytsk-20250801/error.cpp:68:6: note: Assuming condition is false pytsk-20250801/error.cpp:86:25: note: Uninitialized variable: tmp 2.21.0 pytsk-20250801/talloc/talloc.c:1991:14: style:inconclusive: Function 'talloc_report_depth_cb' argument 5 names different: declaration '' definition 'private_data'. [funcArgNamesDifferentUnnamed] DONE