2026-05-01 14:58 ftp://ftp.de.debian.org/debian/pool/main/d/dds2tar/dds2tar_2.5.2.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.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: 44 30 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: dds2tar-2.5.2.orig/dds2tar.c:147:12: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] dds2tar-2.5.2.orig/dds_chkhdr.c:26:2: warning: %o in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] dds2tar-2.5.2.orig/dds_chkhdr.c:32:3: warning: %o in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] dds2tar-2.5.2.orig/dds_chkhdr.c:15:47: style:inconclusive: Function 'dds_is_tar_header_record' argument 1 names different: declaration '' definition 'ptr'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/dds_extract.c:125:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_extract.c:321:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_extract.c:179:3: warning: %o in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] dds2tar-2.5.2.orig/dds_extract.c:272:34: style:inconclusive: Function 'dds_cmp' argument 1 names different: declaration 'pattern' definition 'pattern_list'. [funcArgNamesDifferent] dds2tar-2.5.2.orig/dds2tar.h:96:39: note: Function 'dds_cmp' argument 1 names different: declaration 'pattern' definition 'pattern_list'. dds2tar-2.5.2.orig/dds_extract.c:272:34: note: Function 'dds_cmp' argument 1 names different: declaration 'pattern' definition 'pattern_list'. dds2tar-2.5.2.orig/dds_extract.c:551:14: style: Local variable 'p' shadows outer variable [shadowVariable] dds2tar-2.5.2.orig/dds_extract.c:276:21: note: Shadowed declaration dds2tar-2.5.2.orig/dds_extract.c:551:14: note: Shadow variable dds2tar-2.5.2.orig/dds_extract.c:275:8: style: Variable 'fgets_return_value' can be declared as pointer to const [constVariablePointer] dds2tar-2.5.2.orig/dds_extract.c:551:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] dds2tar-2.5.2.orig/dds_index.c:36:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_index.c:72:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_index.c:167:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_index.c:239:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_index.c:97:3: warning: %o in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] dds2tar-2.5.2.orig/dds_index.c:104:9: style: Variable 'name' can be declared as pointer to const [constVariablePointer] dds2tar-2.5.2.orig/dds_quote.c:26:5: warning: %o in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] dds2tar-2.5.2.orig/dds_quote.c:3:22: style:inconclusive: Function 'dds_unquote' argument 1 names different: declaration 'str' definition 'p'. [funcArgNamesDifferent] dds2tar-2.5.2.orig/dds2tar.h:93:29: note: Function 'dds_unquote' argument 1 names different: declaration 'str' definition 'p'. dds2tar-2.5.2.orig/dds_quote.c:3:22: note: Function 'dds_unquote' argument 1 names different: declaration 'str' definition 'p'. dds2tar-2.5.2.orig/dds_tape.c:26:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTSETDRVBUFFER [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_tape.c:38:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTSETDRVBUFFER [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_tape.c:53:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTBSR [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_tape.c:78:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTSETBLK [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_tape.c:132:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_tape.c:193:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOC_GET_POSITION [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_tape.c:261:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTSEEK [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/dds_tape.c:76:20: style:inconclusive: Function 'dds_set_bs' argument 1 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/dds_tape.c:97:14: style: Variable 'err' is assigned a value that is never used. [unreadVariable] dds2tar-2.5.2.orig/zf-cre-open.c:56:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/zf-cre-open.c:147:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dds2tar-2.5.2.orig/zf-cre-open.c:60:3: error: Memory leak: b [memleak] dds2tar-2.5.2.orig/zf-cre-open.c:35:26: style:inconclusive: Function 'zfopen' argument 1 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:36:18: style:inconclusive: Function 'zfopen' argument 2 names different: declaration '' definition 'compressed'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:37:26: style:inconclusive: Function 'zfopen' argument 3 names different: declaration '' definition 'open_mode'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:85:18: style:inconclusive: Function 'cclose' argument 1 names different: declaration '' definition 'fd'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:96:18: style:inconclusive: Function 'reopen' argument 1 names different: declaration '' definition 'stdfd'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:97:26: style:inconclusive: Function 'reopen' argument 2 names different: declaration '' definition 'output_file'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:98:18: style:inconclusive: Function 'reopen' argument 3 names different: declaration '' definition 'mode'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:99:18: style:inconclusive: Function 'reopen' argument 4 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:135:19: style:inconclusive: Function 'creopen' argument 1 names different: declaration '' definition 'stdfd_parent'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:136:19: style:inconclusive: Function 'creopen' argument 2 names different: declaration '' definition 'stdfd_child'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:137:27: style:inconclusive: Function 'creopen' argument 3 names different: declaration '' definition 'filename'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:138:28: style:inconclusive: Function 'creopen' argument 4 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] dds2tar-2.5.2.orig/zf-cre-open.c:74:13: error: Memory is allocated but not initialized: b [uninitdata] diff: head dds2tar-2.5.2.orig/dds_chkhdr.c:15:47: style:inconclusive: Function 'dds_is_tar_header_record' argument 1 names different: declaration '' definition 'ptr'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/dds_tape.c:76:20: style:inconclusive: Function 'dds_set_bs' argument 1 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:135:19: style:inconclusive: Function 'creopen' argument 1 names different: declaration '' definition 'stdfd_parent'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:136:19: style:inconclusive: Function 'creopen' argument 2 names different: declaration '' definition 'stdfd_child'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:137:27: style:inconclusive: Function 'creopen' argument 3 names different: declaration '' definition 'filename'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:138:28: style:inconclusive: Function 'creopen' argument 4 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:35:26: style:inconclusive: Function 'zfopen' argument 1 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:36:18: style:inconclusive: Function 'zfopen' argument 2 names different: declaration '' definition 'compressed'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:37:26: style:inconclusive: Function 'zfopen' argument 3 names different: declaration '' definition 'open_mode'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:85:18: style:inconclusive: Function 'cclose' argument 1 names different: declaration '' definition 'fd'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:96:18: style:inconclusive: Function 'reopen' argument 1 names different: declaration '' definition 'stdfd'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:97:26: style:inconclusive: Function 'reopen' argument 2 names different: declaration '' definition 'output_file'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:98:18: style:inconclusive: Function 'reopen' argument 3 names different: declaration '' definition 'mode'. [funcArgNamesDifferentUnnamed] head dds2tar-2.5.2.orig/zf-cre-open.c:99:18: style:inconclusive: Function 'reopen' argument 4 names different: declaration '' definition 'flags'. [funcArgNamesDifferentUnnamed] DONE