2025-10-16 16:22 ftp://ftp.de.debian.org/debian/pool/main/f/fcrackzip/fcrackzip_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.12.48+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 7828eb5 (2025-10-15 23:40:19 +0200) count: 29 29 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: fcrackzip-1.0/zipcrack.c:44:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PW [valueFlowBailoutIncompleteVar] fcrackzip-1.0/zipcrack.c:36:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mult_tab [valueFlowBailoutIncompleteVar] fcrackzip-1.0/zipcrack.c:234:17: style: Variable 'e' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/cpmask.c:61:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fcrackzip-1.0/cpmask.c:343:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable verbosity [valueFlowBailoutIncompleteVar] fcrackzip-1.0/main.c:307:11: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE is a macro then please configure it. [unknownMacro] fcrackzip-1.0/getopt.c:495:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fcrackzip-1.0/crack.c:47:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fcrackzip-1.0/cpmask.c:344:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fcrackzip-1.0/zipcrack.c:72:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fcrackzip-1.0/zipinfo.c:147:18: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE is a macro then please configure it. [unknownMacro] fcrackzip-1.0/cpmask.c:87:8: portability: %d in format string (no. 1) requires 'int' but the argument type is 'UI {aka unsigned int}'. [invalidPrintfArgType_sint] fcrackzip-1.0/cpmask.c:385:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] fcrackzip-1.0/cpmask.c:111:1: error: Resource leak: img [resourceLeak] fcrackzip-1.0/cpmask.c:134:26: style: Parameter 'pw_end' can be declared as pointer to const [constParameterPointer] fcrackzip-1.0/cpmask.c:236:12: style: Variable 'cell' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/cpmask.c:269:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/cpmask.c:270:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/cpmask.c:271:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/cpmask.c:272:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/cpmask.c:279:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/cpmask.c:280:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/cpmask.c:281:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/cpmask.c:282:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/cpmask.c:336:29: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] fcrackzip-1.0/cpmask.c:336:25: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] fcrackzip-1.0/getopt.c:667:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] fcrackzip-1.0/getopt.c:718:10: style: Variable 'c' is assigned a value that is never used. [unreadVariable] fcrackzip-1.0/getopt.c:720:10: style: Variable 'c' is assigned a value that is never used. [unreadVariable] diff: DONE