2026-06-12 15:09 ftp://ftp.de.debian.org/debian/pool/main/s/smpq/smpq_1.7.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --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-124-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.21.0 head-info: 9becbb6 (2026-06-12 15:50:12 +0200) count: 42 42 elapsed-time: 0.9 0.9 head-timing-info: old-timing-info: head results: smpq-1.7/append.c:43:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPQ_FILE_ENCRYPTED [valueFlowBailoutIncompleteVar] smpq-1.7/append.c:258:80: error: Uninitialized variable: SFileName [uninitvar] smpq-1.7/check.c:4:2: error: #error You have old Stormlib version [preprocessorErrorDirective] smpq-1.7/dirname.c:43:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] smpq-1.7/dirname.c:167:8: error: Common realloc mistake: 'retfail' nulled but not freed upon failure [memleakOnRealloc] smpq-1.7/extract.c:85:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] smpq-1.7/extract.c:180:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STREAM_FLAG_READ_ONLY [valueFlowBailoutIncompleteVar] smpq-1.7/extract.c:346:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] smpq-1.7/extract.c:456:5: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] smpq-1.7/extract.c:77:3: error: Memory leak: path [memleak] smpq-1.7/extract.c:60:9: style: Variable 'r' can be declared as pointer to const [constVariablePointer] smpq-1.7/info.c:31:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SFileMpqNumberOfFiles [valueFlowBailoutIncompleteVar] smpq-1.7/info.c:65:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STREAM_FLAG_READ_ONLY [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:116:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDIR_SEPARATOR [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:160:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:207:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDIR_SEPARATOR [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:217:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDIR_SEPARATOR [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:264:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_DOES_NOT_EXIST [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:358:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_DOES_NOT_EXIST [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:477:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_DOES_NOT_EXIST [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:555:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_DOES_NOT_EXIST [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:657:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_CANNOT_ENTER_DIRECTORY [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:773:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_DOES_NOT_EXIST [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:924:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_DOES_NOT_EXIST [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:1069:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_HANDLE_EOF [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:1105:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_BEGIN [valueFlowBailoutIncompleteVar] smpq-1.7/kio_smpq.cpp:225:17: style: Either there is a missing 'override', or the member function 'SMPQSlave::toFileTime' can be static. [functionStatic] smpq-1.7/kio_smpq.h:40:8: note: Either there is a missing 'override', or the member function 'SMPQSlave::toFileTime' can be static. smpq-1.7/kio_smpq.cpp:225:17: note: Either there is a missing 'override', or the member function 'SMPQSlave::toFileTime' can be static. smpq-1.7/kio_smpq.cpp:234:17: style:inconclusive: Either there is a missing 'override', or the member function 'SMPQSlave::fromFileTime' can be const. [functionConst] smpq-1.7/kio_smpq.h:41:8: note: Either there is a missing 'override', or the member function 'SMPQSlave::fromFileTime' can be const. smpq-1.7/kio_smpq.cpp:234:17: note: Either there is a missing 'override', or the member function 'SMPQSlave::fromFileTime' can be const. smpq-1.7/kio_smpq.cpp:797:7: style: Condition '!found' is always true [knownConditionTrueFalse] smpq-1.7/kio_smpq.cpp:794:15: note: Assignment 'found=false', assigned value is 0 smpq-1.7/kio_smpq.cpp:797:7: note: Condition '!found' is always true smpq-1.7/kio_smpq.cpp:393:9: style: The scope of the variable 'bytes' can be reduced. [variableScope] smpq-1.7/kio_smpq.h:51:41: style:inconclusive: Function 'put' argument 2 names different: declaration 'permissions' definition ''. [funcArgNamesDifferentUnnamed] smpq-1.7/kio_smpq.h:56:34: style:inconclusive: Function 'mkdir' argument 1 names different: declaration 'url' definition ''. [funcArgNamesDifferentUnnamed] smpq-1.7/kio_smpq.h:56:43: style:inconclusive: Function 'mkdir' argument 2 names different: declaration 'permissions' definition ''. [funcArgNamesDifferentUnnamed] smpq-1.7/kio_smpq.cpp:697:14: style: Local variable 'fileName' shadows outer variable [shadowVariable] smpq-1.7/kio_smpq.cpp:644:10: note: Shadowed variable smpq-1.7/kio_smpq.cpp:697:14: note: Shadow local variable smpq-1.7/listfiles.c:91:18: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] smpq-1.7/main.c:278:11: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] smpq-1.7/print.c:43:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] smpq-1.7/print.c:51:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] smpq-1.7/print.c:63:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] smpq-1.7/print.c:26:30: warning: Function 'printError' argument order different: declaration 'archive, file, message, errnum' definition 'archive, message, file, errnum' [funcArgOrderDifferent] smpq-1.7/common.h:144:30: note: Function 'printError' argument order different: declaration 'archive, file, message, errnum' definition 'archive, message, file, errnum' smpq-1.7/print.c:26:30: note: Function 'printError' argument order different: declaration 'archive, file, message, errnum' definition 'archive, message, file, errnum' smpq-1.7/remove.c:35:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPQ_OPEN_NO_LISTFILE [valueFlowBailoutIncompleteVar] smpq-1.7/rename.c:31:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPQ_OPEN_NO_LISTFILE [valueFlowBailoutIncompleteVar] diff: DONE