2025-06-28 14:19 ftp://ftp.de.debian.org/debian/pool/main/libn/libntlm/libntlm_1.8.orig.tar.xz 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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: b6dd286 (2025-06-27 13:53:34 +0200) count: 24 24 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: libntlm-1.8/test_CVE-2019-17455.c:33:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tSmbNtlmAuthRequest [valueFlowBailoutIncompleteVar] libntlm-1.8/examples/getargs.c:29:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libntlm-1.8/examples/getargs.c:35:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libntlm-1.8/examples/getargs.c:123:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OptionBoolean [valueFlowBailoutIncompleteVar] libntlm-1.8/test_ntlm.c:166:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTLM_VERSION [valueFlowBailoutIncompleteVar] libntlm-1.8/examples/dumper.c:79:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libntlm-1.8/smbutil.c:266:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTLM_MSG_BUFSIZE [valueFlowBailoutIncompleteVar] libntlm-1.8/smbutil.c:311:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTLM_MSG_BUFSIZE [valueFlowBailoutIncompleteVar] libntlm-1.8/smbencrypt.c:143:25: style: Parameter 'key_56' can be declared as pointer to const [constParameterPointer] libntlm-1.8/test_ntlm.c:151:7: error: Resource leak: f [resourceLeak] libntlm-1.8/test_ntlm.c:157:7: error: Resource leak: f [resourceLeak] libntlm-1.8/test_ntlm.c:163:7: error: Resource leak: f [resourceLeak] libntlm-1.8/test_ntlm.c:169:7: error: Resource leak: f [resourceLeak] libntlm-1.8/test_ntlm.c:175:7: error: Resource leak: f [resourceLeak] libntlm-1.8/examples/getargs.c:160:10: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'void *'. [invalidScanfArgType_int] libntlm-1.8/examples/getargs.c:83:56: style:inconclusive: Function 'getargs' argument 4 names different: declaration 'numberSpecs' definition 'specCount'. [funcArgNamesDifferent] libntlm-1.8/examples/getargs.h:19:62: note: Function 'getargs' argument 4 names different: declaration 'numberSpecs' definition 'specCount'. libntlm-1.8/examples/getargs.c:83:56: note: Function 'getargs' argument 4 names different: declaration 'numberSpecs' definition 'specCount'. libntlm-1.8/examples/getargs.c:12:29: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] libntlm-1.8/examples/getargs.c:148:12: style: Variable 'format' can be declared as pointer to const [constVariablePointer] libntlm-1.8/smbutil.c:317:3: error: Null pointer dereference: p [nullPointer] libntlm-1.8/smbutil.c:317:3: note: Assignment 'p=NULL', assigned value is 0 libntlm-1.8/smbutil.c:317:3: note: Null pointer dereference libntlm-1.8/smbutil.c:317:3: error: Null pointer dereference [nullPointer] libntlm-1.8/smbutil.c:311:3: style: Variable 'b' can be declared as pointer to const [constVariablePointer] libntlm-1.8/smbutil.c:312:3: style: Variable 'b' can be declared as pointer to const [constVariablePointer] libntlm-1.8/smbutil.c:314:3: style: Variable 'b' can be declared as pointer to const [constVariablePointer] libntlm-1.8/smbutil.c:175:10: warning: Uninitialized variable: buf [uninitvar] libntlm-1.8/smbutil.c:312:3: note: Calling function 'strToUnicode', 3rd argument 'buf' value is libntlm-1.8/smbutil.c:169:11: note: Assuming condition is false libntlm-1.8/smbutil.c:175:10: note: Uninitialized variable: buf diff: DONE