2024-03-28 01:14 ftp://ftp.de.debian.org/debian/pool/main/libn/libntlm/libntlm_1.7.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 -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-101-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.13.0 head-info: 98951f5 (2024-03-27 21:50:05 +0100) count: 26 25 elapsed-time: 1.4 1.1 head-timing-info: old-timing-info: head results: libntlm-1.7/lib/check-version.c:38:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] libntlm-1.7/lib/des.c:337:9: style: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction] libntlm-1.7/lib/des.c:549:49: style:inconclusive: Function 'gl_des_ecb_crypt' argument 2 names different: declaration 'from' definition '_from'. [funcArgNamesDifferent] libntlm-1.7/lib/des.h:70:49: note: Function 'gl_des_ecb_crypt' argument 2 names different: declaration 'from' definition '_from'. libntlm-1.7/lib/des.c:549:49: note: Function 'gl_des_ecb_crypt' argument 2 names different: declaration 'from' definition '_from'. libntlm-1.7/lib/des.c:549:63: style:inconclusive: Function 'gl_des_ecb_crypt' argument 3 names different: declaration 'to' definition '_to'. [funcArgNamesDifferent] libntlm-1.7/lib/des.h:70:63: note: Function 'gl_des_ecb_crypt' argument 3 names different: declaration 'to' definition '_to'. libntlm-1.7/lib/des.c:549:63: note: Function 'gl_des_ecb_crypt' argument 3 names different: declaration 'to' definition '_to'. libntlm-1.7/lib/des.c:621:33: style:inconclusive: Function 'gl_3des_ecb_crypt' argument 2 names different: declaration 'from' definition '_from'. [funcArgNamesDifferent] libntlm-1.7/lib/des.h:111:33: note: Function 'gl_3des_ecb_crypt' argument 2 names different: declaration 'from' definition '_from'. libntlm-1.7/lib/des.c:621:33: note: Function 'gl_3des_ecb_crypt' argument 2 names different: declaration 'from' definition '_from'. libntlm-1.7/lib/des.c:622:27: style:inconclusive: Function 'gl_3des_ecb_crypt' argument 3 names different: declaration 'to' definition '_to'. [funcArgNamesDifferent] libntlm-1.7/lib/des.h:112:27: note: Function 'gl_3des_ecb_crypt' argument 3 names different: declaration 'to' definition '_to'. libntlm-1.7/lib/des.c:622:27: note: Function 'gl_3des_ecb_crypt' argument 3 names different: declaration 'to' definition '_to'. libntlm-1.7/lib/strverscmp.c:111:1: error: There is an unknown macro here somewhere. Configuration is required. If libc_hidden_def is a macro then please configure it. [unknownMacro] libntlm-1.7/smbencrypt.c:143:25: style: Parameter 'key_56' can be declared as pointer to const [constParameterPointer] libntlm-1.7/smbutil.c:317:3: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] libntlm-1.7/smbutil.c:317:3: error: Null pointer dereference: p [nullPointer] libntlm-1.7/smbutil.c:317:3: note: Assignment 'p=NULL', assigned value is 0 libntlm-1.7/smbutil.c:317:3: note: Null pointer dereference libntlm-1.7/smbutil.c:317:3: error: Null pointer dereference [nullPointer] libntlm-1.7/smbutil.c:317:3: style: Checking if unsigned expression '1024-response->bufIndex' is less than zero. [unsignedLessThanZero] libntlm-1.7/smbutil.c:317:3: note: Assignment 'len=p?strlen(p):0', assigned value is 0 libntlm-1.7/smbutil.c:317:3: note: Assignment 'count2=len', assigned value is 0 libntlm-1.7/smbutil.c:317:3: note: Unsigned less than zero libntlm-1.7/smbutil.c:122:56: style: Parameter 'structPtr' can be declared as pointer to const [constParameterPointer] libntlm-1.7/smbutil.c:151:52: style: Parameter 'structPtr' can be declared as pointer to const [constParameterPointer] libntlm-1.7/smbutil.c:190:45: style: Parameter 'structPtr' can be declared as pointer to const [constParameterPointer] libntlm-1.7/smbutil.c:296:58: style: Parameter 'challenge' can be declared as pointer to const [constParameterPointer] libntlm-1.7/smbutil.c:311:3: style: Variable 'b' can be declared as pointer to const [constVariablePointer] libntlm-1.7/smbutil.c:312:3: style: Variable 'b' can be declared as pointer to const [constVariablePointer] libntlm-1.7/smbutil.c:314:3: style: Variable 'b' can be declared as pointer to const [constVariablePointer] libntlm-1.7/smbutil.c:175:10: warning: Uninitialized variable: buf [uninitvar] libntlm-1.7/smbutil.c:312:3: note: Calling function 'strToUnicode', 3rd argument 'buf' value is libntlm-1.7/smbutil.c:169:11: note: Assuming condition is false libntlm-1.7/smbutil.c:175:10: note: Uninitialized variable: buf libntlm-1.7/test_ntlm.c:198:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NTLM_SRCDIR [valueFlowBailoutIncompleteVar] libntlm-1.7/test_ntlm.c:151:7: error: Resource leak: f [resourceLeak] libntlm-1.7/test_ntlm.c:157:7: error: Resource leak: f [resourceLeak] libntlm-1.7/test_ntlm.c:163:7: error: Resource leak: f [resourceLeak] libntlm-1.7/test_ntlm.c:169:7: error: Resource leak: f [resourceLeak] libntlm-1.7/test_ntlm.c:175:7: error: Resource leak: f [resourceLeak] diff: head libntlm-1.7/smbutil.c:175:10: warning: Uninitialized variable: buf [uninitvar] libntlm-1.7/smbutil.c:312:3: note: Calling function 'strToUnicode', 3rd argument 'buf' value is libntlm-1.7/smbutil.c:169:11: note: Assuming condition is false libntlm-1.7/smbutil.c:175:10: note: Uninitialized variable: buf DONE