2025-09-14 02:05 ftp://ftp.de.debian.org/debian/pool/main/libn/libntlm/libntlm_1.8.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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: fea194b (2025-09-13 13:40:14 +0200) count: 24 24 elapsed-time: 0.2 0.3 head-timing-info: old-timing-info: head results: libntlm-v1.8/examples/dumper.c:79:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libntlm-v1.8/examples/getargs.c:29:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libntlm-v1.8/examples/getargs.c:35:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libntlm-v1.8/examples/getargs.c:123:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OptionBoolean [valueFlowBailoutIncompleteVar] libntlm-v1.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-v1.8/examples/getargs.c:83:56: style:inconclusive: Function 'getargs' argument 4 names different: declaration 'numberSpecs' definition 'specCount'. [funcArgNamesDifferent] libntlm-v1.8/examples/getargs.h:19:62: note: Function 'getargs' argument 4 names different: declaration 'numberSpecs' definition 'specCount'. libntlm-v1.8/examples/getargs.c:83:56: note: Function 'getargs' argument 4 names different: declaration 'numberSpecs' definition 'specCount'. libntlm-v1.8/examples/getargs.c:12:29: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] libntlm-v1.8/examples/getargs.c:148:12: style: Variable 'format' can be declared as pointer to const [constVariablePointer] libntlm-v1.8/smbencrypt.c:143:25: style: Parameter 'key_56' can be declared as pointer to const [constParameterPointer] libntlm-v1.8/smbutil.c:266:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTLM_MSG_BUFSIZE [valueFlowBailoutIncompleteVar] libntlm-v1.8/smbutil.c:311:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTLM_MSG_BUFSIZE [valueFlowBailoutIncompleteVar] libntlm-v1.8/smbutil.c:317:3: error: Null pointer dereference: p [nullPointer] libntlm-v1.8/smbutil.c:317:3: note: Assignment 'p=NULL', assigned value is 0 libntlm-v1.8/smbutil.c:317:3: note: Null pointer dereference libntlm-v1.8/smbutil.c:317:3: error: Null pointer dereference [nullPointer] libntlm-v1.8/smbutil.c:311:3: style: Variable 'b' can be declared as pointer to const [constVariablePointer] libntlm-v1.8/smbutil.c:312:3: style: Variable 'b' can be declared as pointer to const [constVariablePointer] libntlm-v1.8/smbutil.c:314:3: style: Variable 'b' can be declared as pointer to const [constVariablePointer] libntlm-v1.8/smbutil.c:175:10: warning: Uninitialized variable: buf [uninitvar] libntlm-v1.8/smbutil.c:312:3: note: Calling function 'strToUnicode', 3rd argument 'buf' value is libntlm-v1.8/smbutil.c:169:11: note: Assuming condition is false libntlm-v1.8/smbutil.c:175:10: note: Uninitialized variable: buf libntlm-v1.8/test_CVE-2019-17455.c:33:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tSmbNtlmAuthRequest [valueFlowBailoutIncompleteVar] libntlm-v1.8/test_ntlm.c:166:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTLM_VERSION [valueFlowBailoutIncompleteVar] libntlm-v1.8/test_ntlm.c:151:7: error: Resource leak: f [resourceLeak] libntlm-v1.8/test_ntlm.c:157:7: error: Resource leak: f [resourceLeak] libntlm-v1.8/test_ntlm.c:163:7: error: Resource leak: f [resourceLeak] libntlm-v1.8/test_ntlm.c:169:7: error: Resource leak: f [resourceLeak] libntlm-v1.8/test_ntlm.c:175:7: error: Resource leak: f [resourceLeak] diff: DONE