2026-05-01 13:27 ftp://ftp.de.debian.org/debian/pool/main/c/cracklib2/cracklib2_2.10.2.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --library=python --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: 33 33 elapsed-time: 0.6 0.5 head-timing-info: old-timing-info: head results: cracklib-2.10.2/lib/fascist.c:877:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_CRACKLIB_DICT [valueFlowBailoutIncompleteVar] cracklib-2.10.2/lib/fascist.c:914:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_CRACKLIB_DICT [valueFlowBailoutIncompleteVar] cracklib-2.10.2/lib/fascist.c:682:11: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] cracklib-2.10.2/lib/fascist.c:687:6: style: Condition 'sbuffer' is always false [knownConditionTrueFalse] cracklib-2.10.2/lib/fascist.c:649:21: note: Assignment 'sbuffer=NULL', assigned value is 0 cracklib-2.10.2/lib/fascist.c:687:6: note: Condition 'sbuffer' is always false cracklib-2.10.2/lib/fascist.c:697:9: style: Condition 'sbuffer' is always false [knownConditionTrueFalse] cracklib-2.10.2/lib/fascist.c:649:21: note: Assignment 'sbuffer=NULL', assigned value is 0 cracklib-2.10.2/lib/fascist.c:685:13: note: Assuming condition is false cracklib-2.10.2/lib/fascist.c:697:9: note: Condition 'sbuffer' is always false cracklib-2.10.2/lib/fascist.c:648:20: style: Variable 'pwp' can be declared as pointer to const [constVariablePointer] cracklib-2.10.2/lib/fascist.c:707:36: style: Parameter 'instring' can be declared as pointer to const [constParameterPointer] cracklib-2.10.2/lib/portable_endian.h:169:3: error: #error platform not supported [preprocessorErrorDirective] cracklib-2.10.2/lib/rules.c:21:22: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] cracklib-2.10.2/lib/rules.c:59:28: style: Parameter 'suffix' can be declared as pointer to const [constParameterPointer] cracklib-2.10.2/lib/rules.c:76:15: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] cracklib-2.10.2/lib/rules.c:188:13: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] cracklib-2.10.2/lib/rules.c:357:17: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] cracklib-2.10.2/lib/rules.c:391:14: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] cracklib-2.10.2/lib/rules.c:777:14: style: Parameter 'control' can be declared as pointer to const [constParameterPointer] cracklib-2.10.2/lib/rules.c:777:29: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] cracklib-2.10.2/lib/stringlib.c:45:13: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] cracklib-2.10.2/python/_cracklib.c:89:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] cracklib-2.10.2/python/_cracklib.c:82:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] cracklib-2.10.2/python/_cracklib.c:74:34: style: Parameter 'self' can be declared as pointer to const. However it seems that '_cracklib_FascistCheck' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cracklib-2.10.2/python/_cracklib.c:157:36: note: You might need to cast the function pointer here cracklib-2.10.2/python/_cracklib.c:74:34: note: Parameter 'self' can be declared as pointer to const cracklib-2.10.2/python/_cracklib.c:198:15: style: Variable 'module' can be declared as pointer to const [constVariablePointer] cracklib-2.10.2/util/check.c:24:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINE_MAX [valueFlowBailoutIncompleteVar] cracklib-2.10.2/util/check.c:69:40: style: Condition 'i>0' is always true [knownConditionTrueFalse] cracklib-2.10.2/util/check.c:69:29: note: Assuming that condition '(i=strlen(buf))>0' is not redundant cracklib-2.10.2/util/check.c:69:40: note: Condition 'i>0' is always true cracklib-2.10.2/util/check.c:28:13: style: Variable 'result' is assigned a value that is never used. [unreadVariable] cracklib-2.10.2/util/packer.c:23:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRINGSIZE [valueFlowBailoutIncompleteVar] cracklib-2.10.2/util/testlib.c:22:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_CRACKLIB_DICT [valueFlowBailoutIncompleteVar] cracklib-2.10.2/util/testnum.c:22:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRINGSIZE [valueFlowBailoutIncompleteVar] cracklib-2.10.2/util/testnum.c:48:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cracklib-2.10.2/util/testnum.c:44:8: style: Variable 'c' can be declared as pointer to const [constVariablePointer] cracklib-2.10.2/util/teststr.c:18:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRINGSIZE [valueFlowBailoutIncompleteVar] cracklib-2.10.2/util/unpacker.c:24:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cracklib-2.10.2/util/unpacker.c:40:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cracklib-2.10.2/util/unpacker.c:36:21: style: Variable 'c' can be declared as pointer to const [constVariablePointer] diff: DONE