2026-05-03 02:12 ftp://ftp.de.debian.org/debian/pool/main/liba/libauthen-smb-perl/libauthen-smb-perl_0.91.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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-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: 83 83 elapsed-time: 2.4 1.8 head-timing-info: old-timing-info: head results: libauthen-smb-perl-0.91/smbval/md4.c:59:30: style: Parameter 'M' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/md4.c:106:46: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:40:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:64:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SV_INTERRUPT [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:113:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:161:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_len [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:258:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:152:28: style:inconclusive: Boolean expression 'pkt_ptr!=NULL' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:87:42: style: Parameter 'con' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:182:37: warning: Uninitialized variable: io_list [uninitvar] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:152:28: note: Assuming condition is false libauthen-smb-perl-0.91/smbval/rfcnb-io.c:182:37: note: Uninitialized variable: io_list libauthen-smb-perl-0.91/smbval/rfcnb-io.c:299:7: warning: Uninitialized variable: read_len [uninitvar] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:251:10: note: Assuming condition is false libauthen-smb-perl-0.91/smbval/rfcnb-io.c:299:7: note: Uninitialized variable: read_len libauthen-smb-perl-0.91/smbval/rfcnb-io.c:49:7: style: Unused variable: temp [unusedVariable] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:334:13: style: Variable 'this_time' is assigned a value that is never used. [unreadVariable] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:183:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:332:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:379:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:517:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_addr [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:327:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:383:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:244:5: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:263:7: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:274:7: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:280:7: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:294:7: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:303:7: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:41:30: style: Parameter 'name1' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:79:34: style: Parameter 'AName' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:101:34: style: Parameter 'NBName' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:129:15: style: Variable 'Hex_List' can be declared as const array [constVariable] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:231:38: style: Parameter 'dirn' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:316:28: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/rfcnb-util.c:319:19: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] libauthen-smb-perl-0.91/smbval/session.c:70:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/session.c:188:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/session.c:238:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/session.c:92:5: error: Memory leak: con [memleak] libauthen-smb-perl-0.91/smbval/session.c:298:46: style: Parameter 'con_Handle' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbdes.c:149:38: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbdes.c:149:47: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbdes.c:166:37: style: Parameter 'in1' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbdes.c:166:48: style: Parameter 'in2' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbdes.c:174:34: style: Parameter 'in1' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbdes.c:174:45: style: Parameter 'in2' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbdes.c:260:39: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbdes.c:278:56: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbencrypt.c:145:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] libauthen-smb-perl-0.91/smbval/smbencrypt.c:59:30: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbencrypt.c:74:44: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smbencrypt.c:151:32: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smblib-util.c:362:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/smblib-util.c:790:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] libauthen-smb-perl-0.91/smbval/smblib-util.c:248:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] libauthen-smb-perl-0.91/smbval/smblib-util.c:508:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] libauthen-smb-perl-0.91/smbval/smblib-util.c:629:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] libauthen-smb-perl-0.91/smbval/smblib-util.c:362:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'char *'. [invalidPrintfArgType_sint] libauthen-smb-perl-0.91/smbval/smblib-util.c:439:49: style:inconclusive: Function 'SMB_TreeConnect' argument 1 names different: declaration 'con' definition 'Con_Handle'. [funcArgNamesDifferent] libauthen-smb-perl-0.91/smbval/smblib-priv.h:624:49: note: Function 'SMB_TreeConnect' argument 1 names different: declaration 'con' definition 'Con_Handle'. libauthen-smb-perl-0.91/smbval/smblib-util.c:439:49: note: Function 'SMB_TreeConnect' argument 1 names different: declaration 'con' definition 'Con_Handle'. libauthen-smb-perl-0.91/smbval/smblib-util.c:440:21: style:inconclusive: Function 'SMB_TreeConnect' argument 2 names different: declaration 'tree' definition 'Tree_Handle'. [funcArgNamesDifferent] libauthen-smb-perl-0.91/smbval/smblib-priv.h:624:70: note: Function 'SMB_TreeConnect' argument 2 names different: declaration 'tree' definition 'Tree_Handle'. libauthen-smb-perl-0.91/smbval/smblib-util.c:440:21: note: Function 'SMB_TreeConnect' argument 2 names different: declaration 'tree' definition 'Tree_Handle'. libauthen-smb-perl-0.91/smbval/smblib-util.c:443:11: style:inconclusive: Function 'SMB_TreeConnect' argument 5 names different: declaration 'dev' definition 'device'. [funcArgNamesDifferent] libauthen-smb-perl-0.91/smbval/smblib-priv.h:625:39: note: Function 'SMB_TreeConnect' argument 5 names different: declaration 'dev' definition 'device'. libauthen-smb-perl-0.91/smbval/smblib-util.c:443:11: note: Function 'SMB_TreeConnect' argument 5 names different: declaration 'dev' definition 'device'. libauthen-smb-perl-0.91/smbval/smblib-util.c:594:30: warning:inconclusive: Found suspicious equality comparison. Did you intend to assign a value instead? [constStatement] libauthen-smb-perl-0.91/smbval/smblib-util.c:595:29: warning:inconclusive: Found suspicious equality comparison. Did you intend to assign a value instead? [constStatement] libauthen-smb-perl-0.91/smbval/smblib-util.c:35:40: style: Parameter 'pkt' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smblib-util.c:166:31: style: Parameter 'dialects' can be declared as const array [constParameter] libauthen-smb-perl-0.91/smbval/smblib-util.c:441:11: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smblib-util.c:442:11: style: Parameter 'password' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smblib-util.c:443:11: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smblib-util.c:446:18: style: Unused variable: i [unusedVariable] libauthen-smb-perl-0.91/smbval/smblib.c:49:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/smblib.c:98:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libauthen-smb-perl-0.91/smbval/smblib.c:183:7: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] libauthen-smb-perl-0.91/smbval/smblib.c:286:7: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] libauthen-smb-perl-0.91/smbval/smblib.c:254:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libauthen-smb-perl-0.91/smbval/smblib.c:367:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] libauthen-smb-perl-0.91/smbval/smblib.c:432:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] libauthen-smb-perl-0.91/smbval/smblib.c:561:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] libauthen-smb-perl-0.91/smbval/smblib.c:110:14: style: Parameter 'server' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smblib.c:110:28: style: Parameter 'NTdomain' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smblib.c:206:14: style: Parameter 'username' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smblib.c:210:9: style: Variable 'host' can be declared as pointer to const [constVariablePointer] libauthen-smb-perl-0.91/smbval/smblib.c:319:56: style: Parameter 'UserName' can be declared as pointer to const [constParameterPointer] libauthen-smb-perl-0.91/smbval/smblib.c:113:8: style: Unused variable: temp [unusedVariable] libauthen-smb-perl-0.91/smbval/smblib.c:323:18: style: Unused variable: i [unusedVariable] libauthen-smb-perl-0.91/smbval/smblib.c:323:39: style: Unused variable: a [unusedVariable] libauthen-smb-perl-0.91/smbval/valid.c:11:9: style: Local variable 'SMB_Prots' shadows outer variable [shadowVariable] libauthen-smb-perl-0.91/smbval/smblib-priv.h:497:14: note: Shadowed declaration libauthen-smb-perl-0.91/smbval/valid.c:11:9: note: Shadow variable diff: 2.20.0 libauthen-smb-perl-0.91/smbval/md4.c:103:8: style: Variable 'X[j]' is assigned a value that is never used. [unreadVariable] head libauthen-smb-perl-0.91/smbval/rfcnb-io.c:182:37: warning: Uninitialized variable: io_list [uninitvar] libauthen-smb-perl-0.91/smbval/rfcnb-io.c:152:28: note: Assuming condition is false libauthen-smb-perl-0.91/smbval/rfcnb-io.c:182:37: note: Uninitialized variable: io_list DONE