2024-03-29 01:03 ftp://ftp.de.debian.org/debian/pool/main/n/nss-pam-ldapd/nss-pam-ldapd_0.9.12.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: a6715df (2024-03-28 22:06:40 +0100) count: 153 145 elapsed-time: 1.4 2.0 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.176613s (avg. 0.176613s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.07621s (avg. 0.0254033s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.043183s (avg. 0.0143943s - 3 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.02253s (avg. 0.00751s - 3 result(s)) valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, settings): 0.015628s (avg. 0.00520933s - 3 result(s)) Overall time: 0.201784s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.108779s (avg. 0.108779s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.042256s (avg. 0.0140853s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.020874s (avg. 0.006958s - 3 result(s)) valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, *settings): 0.015098s (avg. 0.00503267s - 3 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.013203s (avg. 0.004401s - 3 result(s)) Overall time: 0.135375s head results: nss-pam-ldapd-0.9.12/common/expr.c:77:54: debug: Function::addArguments found argument 'name' with varid 0. [varid0] nss-pam-ldapd-0.9.12/compat/ether.c:41:22: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/common/dict.c:163:22: style: Parameter 'dict' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/compat/getpeercred.c:43:34: style: Parameter 'uid' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/compat/getpeercred.c:43:46: style: Parameter 'gid' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/compat/getpeercred.c:43:58: style: Parameter 'pid' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/compat/ldap_parse_passwordpolicy_control.c:47:52: debug: Function::addArguments found argument 'ld' with varid 0. [varid0] nss-pam-ldapd-0.9.12/compat/ldap_passwd_s.c:69:63: debug: Function::addArguments found argument 'newpasswd' with varid 0. [varid0] nss-pam-ldapd-0.9.12/compat/ldap_passwd_s.c:68:25: style: Parameter 'ld' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/compat/ldap_passwd_s.c:68:44: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/compat/ldap_passwd_s.c:68:65: style: Parameter 'oldpw' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/compat/ldap_passwd_s.c:69:34: style: Parameter 'newpw' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/compat/pagectrl.c:153:33: style: Parameter 'ld' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/nslcd/alias.c:123:1: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/cfg.c:210:38: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nslcd/common.c:136:10: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] nss-pam-ldapd-0.9.12/nslcd/common.c:124:19: style: Variable 'host' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/nslcd/common.c:214:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nslcd/common.c:254:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nslcd/config.c:36:56: debug: Function::addArguments found argument 'session' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nslcd/config.c:38:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/common/expr.c:227:15: style: Checking if unsigned expression 'buflen' is less than zero. [unsignedLessThanZero] nss-pam-ldapd-0.9.12/common/expr.c:328:45: style:inconclusive: Function 'expr_parse' argument 1 names different: declaration 'expr' definition 'str'. [funcArgNamesDifferent] nss-pam-ldapd-0.9.12/common/expr.h:34:45: note: Function 'expr_parse' argument 1 names different: declaration 'expr' definition 'str'. nss-pam-ldapd-0.9.12/common/expr.c:328:45: note: Function 'expr_parse' argument 1 names different: declaration 'expr' definition 'str'. nss-pam-ldapd-0.9.12/common/expr.c:336:28: style:inconclusive: Function 'expr_vars' argument 1 names different: declaration 'expr' definition 'str'. [funcArgNamesDifferent] nss-pam-ldapd-0.9.12/common/expr.h:39:28: note: Function 'expr_vars' argument 1 names different: declaration 'expr' definition 'str'. nss-pam-ldapd-0.9.12/common/expr.c:336:28: note: Function 'expr_vars' argument 1 names different: declaration 'expr' definition 'str'. nss-pam-ldapd-0.9.12/nslcd/ether.c:172:1: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/group.c:431:1: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/host.c:155:1: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/attmap.c:268:35: style: Checking if unsigned expression 'buflen' is less than zero. [unsignedLessThanZero] nss-pam-ldapd-0.9.12/nslcd/netgroup.c:101:36: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/myldap.c:2354:60: debug: Function::addArguments found argument 'entry' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nslcd/network.c:154:1: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/nslcd.c:213:39: error: There is an unknown macro here somewhere. Configuration is required. If NSLCD_SOCKET is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/pam.c:603:56: debug: Function::addArguments found argument 'session' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nslcd/pam.c:636:56: debug: Function::addArguments found argument 'session' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nslcd/passwd.c:576:1: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/protocol.c:171:1: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/rpc.c:169:1: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/service.c:214:1: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/cfg.c:289:13: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] nss-pam-ldapd-0.9.12/nslcd/cfg.c:299:11: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] nss-pam-ldapd-0.9.12/nslcd/cfg.c:330:11: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] nss-pam-ldapd-0.9.12/nslcd/cfg.c:968:23: portability: Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'. [prohibitedgetpwentCalled] nss-pam-ldapd-0.9.12/nslcd/cfg.c:987:17: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] nss-pam-ldapd-0.9.12/nslcd/shadow.c:314:1: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nslcd/cfg.c:278:18: style: Variable 'pwent' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/nslcd/cfg.c:319:17: style: Variable 'grent' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/nslcd/cfg.c:656:45: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/nslcd/cfg.c:1091:44: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/nslcd/cfg.c:1101:44: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.12/nslcd/cfg.c:1829:8: style: Variable 'scopep' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/nss/aliases.c:74:3: error: There is an unknown macro here somewhere. Configuration is required. If NSLCD_REQUEST is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/nss/bsdnss.c:105:45: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nss/bsdnss.c:125:46: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nss/bsdnss.c:145:45: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nss/bsdnss.c:185:47: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nss/bsdnss.c:220:49: debug: Function::addArguments found argument 'source' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nss/bsdnss.c:230:45: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nss/bsdnss.c:291:43: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nss/bsdnss.c:308:43: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nss/bsdnss.c:117:6: style: Variable 'af' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/bsdnss.c:137:6: style: Variable 'af' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nslcd/usermod.c:93:9: style: Variable 'l' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/nslcd/usermod.c:158:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nslcd/usermod.c:165:10: style: Variable 'buflen' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nslcd/usermod.c:166:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/ethers.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/ethers.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/group.c:39:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/group.c:38:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/group.c:38:21: style: Unused variable: tmp2int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/group.c:38:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/group.c:55:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/group.c:55:21: style: Unused variable: tmp2int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/group.c:55:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/netgroup.c:88:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] nss-pam-ldapd-0.9.12/nss/netgroup.c:89:3: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] nss-pam-ldapd-0.9.12/nss/netgroup.c:41:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/netgroup.c:39:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/hosts.c:74:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/hosts.c:70:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/hosts.c:70:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/hosts.c:117:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/passwd.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/passwd.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/networks.c:71:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/networks.c:68:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/protocols.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/protocols.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/protocols.c:37:21: style: Unused variable: tmp2int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/protocols.c:37:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/rpc.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/rpc.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/rpc.c:37:21: style: Unused variable: tmp2int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/rpc.c:37:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/services.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/services.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/services.c:37:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/shadow.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nss/shadow.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nss/solnss.c:42:66: debug: Function::addArguments found argument 'args' with varid 0. [varid0] nss-pam-ldapd-0.9.12/pam/pam.c:301:3: error: There is an unknown macro here somewhere. Configuration is required. If NSLCD_REQUEST is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/tests/lookup_groupbyuser.c:33:25: style: Parameter 'argv' can be declared as const array [constParameter] nss-pam-ldapd-0.9.12/tests/lookup_netgroup.c:51:10: portability: Non reentrant function 'getnetgrent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetgrent_r'. [prohibitedgetnetgrentCalled] nss-pam-ldapd-0.9.12/tests/lookup_shadow.c:31:25: style: Parameter 'argv' can be declared as const array [constParameter] nss-pam-ldapd-0.9.12/tests/test_attmap.c:42:3: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/tests/test_cfg.c:42:3: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/tests/test_clock.c:94:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.12/tests/test_common.c:48:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.12/tests/test_common.c:50:9: style: Variable 'srcdir' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/tests/test_dict.c:181:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.12/tests/test_dict.c:38:9: style: Variable 'val' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/tests/test_dict.c:84:9: style: Variable 'val' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/tests/test_dict.c:127:9: style: Variable 'val' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/tests/test_dict.c:183:9: style: Variable 'srcdir' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/tests/test_expr.c:47:3: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/tests/test_getpeercred.c:110:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.12/nslcd/myldap.c:188:21: style: Condition 'msg_diag==NULL' is always true [knownConditionTrueFalse] nss-pam-ldapd-0.9.12/nslcd/myldap.c:165:20: note: Assignment 'msg_diag=NULL', assigned value is 0 nss-pam-ldapd-0.9.12/nslcd/myldap.c:188:21: note: Condition 'msg_diag==NULL' is always true nss-pam-ldapd-0.9.12/nslcd/myldap.c:191:16: style: Condition 'msg_diag!=NULL' is always false [knownConditionTrueFalse] nss-pam-ldapd-0.9.12/nslcd/myldap.c:165:20: note: Assignment 'msg_diag=NULL', assigned value is 0 nss-pam-ldapd-0.9.12/nslcd/myldap.c:191:16: note: Condition 'msg_diag!=NULL' is always false nss-pam-ldapd-0.9.12/nslcd/myldap.c:2522:25: style: Condition 'msg_diag!=NULL' is always false [knownConditionTrueFalse] nss-pam-ldapd-0.9.12/nslcd/myldap.c:2507:20: note: Assignment 'msg_diag=NULL', assigned value is 0 nss-pam-ldapd-0.9.12/nslcd/myldap.c:2508:45: note: Assuming condition is false nss-pam-ldapd-0.9.12/nslcd/myldap.c:2522:25: note: Condition 'msg_diag!=NULL' is always false nss-pam-ldapd-0.9.12/nslcd/myldap.c:2525:16: style: Condition 'msg_diag!=NULL' is always false [knownConditionTrueFalse] nss-pam-ldapd-0.9.12/nslcd/myldap.c:2507:20: note: Assignment 'msg_diag=NULL', assigned value is 0 nss-pam-ldapd-0.9.12/nslcd/myldap.c:2508:45: note: Assuming condition is false nss-pam-ldapd-0.9.12/nslcd/myldap.c:2525:16: note: Condition 'msg_diag!=NULL' is always false nss-pam-ldapd-0.9.12/tests/test_myldap.c:411:3: error: There is an unknown macro here somewhere. Configuration is required. If __STRING is a macro then please configure it. [unknownMacro] nss-pam-ldapd-0.9.12/tests/test_set.c:41:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.12/tests/test_getpeercred.c:121:9: style: Variable 'csock' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/tests/test_set.c:72:25: warning: Assert statement modifies 'v'. [assignmentInAssert] nss-pam-ldapd-0.9.12/tests/test_set.c:74:25: warning: Assert statement modifies 'v'. [assignmentInAssert] nss-pam-ldapd-0.9.12/tests/test_set.c:76:25: warning: Assert statement modifies 'v'. [assignmentInAssert] nss-pam-ldapd-0.9.12/nslcd/myldap.c:2508:56: style: Checking if unsigned expression 'buflen' is less than zero. [unsignedLessThanZero] nss-pam-ldapd-0.9.12/nslcd/myldap.c:668:7: style: Unused variable: rc [unusedVariable] nss-pam-ldapd-0.9.12/nslcd/myldap.c:906:13: style: Variable 'tv.tv_sec' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nslcd/myldap.c:907:14: style: Variable 'tv.tv_usec' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nslcd/myldap.c:1300:17: style: Variable 'sleeptime' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.12/nslcd/myldap.c:2402:7: style: Unused variable: i [unusedVariable] nss-pam-ldapd-0.9.12/nslcd/myldap.c:2403:7: style: Unused variable: rc [unusedVariable] nss-pam-ldapd-0.9.12/tests/test_tio.c:355:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.12/tests/test_tio_timeout.c:28:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.12/tests/test_tio.c:105:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.12/tests/test_tio.c:226:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.12/tests/test_tio.c:236:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.12/tests/test_tio.c:247:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.12/tests/test_tio.c:258:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.12/tests/test_tio.c:268:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.12/tests/test_tio.c:308:3: error: Resource handle 'wfp' freed twice. [doubleFree] nss-pam-ldapd-0.9.12/tests/test_tio.c:308:3: note: Resource handle 'wfp' freed twice. nss-pam-ldapd-0.9.12/tests/test_tio.c:308:3: note: Resource handle 'wfp' freed twice. nss-pam-ldapd-0.9.12/tests/test_tio.c:308:3: error: Dereferencing 'wfp' after it is deallocated / released [deallocuse] nss-pam-ldapd-0.9.12/tests/test_tio.c:119:23: style: Variable 'hargs' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/tests/test_tio.c:146:23: style: Variable 'hargs' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/nslcd/pam.c:178:17: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.12/nslcd/pam.c:164:7: warning: Uninitialized variable: rc [uninitvar] nss-pam-ldapd-0.9.12/nslcd/pam.c:145:44: note: Assuming condition is false nss-pam-ldapd-0.9.12/nslcd/pam.c:164:7: note: Uninitialized variable: rc nss-pam-ldapd-0.9.12/nslcd/pam.c:417:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nslcd/pam.c:552:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nslcd/pam.c:605:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nslcd/pam.c:638:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/nslcd/pam.c:776:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.12/tests/test_tio_timeout.c:40:19: style: Same expression on both sides of '/'. [duplicateExpression] nss-pam-ldapd-0.9.12/tests/test_tio_timeout.c:32:19: note: 'sleeptime' is assigned value '1000' here. nss-pam-ldapd-0.9.12/tests/test_tio_timeout.c:40:19: note: Same expression on both sides of '/'. diff: head nss-pam-ldapd-0.9.12/compat/getpeercred.c:43:34: style: Parameter 'uid' can be declared as pointer to const [constParameterPointer] head nss-pam-ldapd-0.9.12/compat/getpeercred.c:43:46: style: Parameter 'gid' can be declared as pointer to const [constParameterPointer] head nss-pam-ldapd-0.9.12/compat/getpeercred.c:43:58: style: Parameter 'pid' can be declared as pointer to const [constParameterPointer] head nss-pam-ldapd-0.9.12/compat/ldap_passwd_s.c:68:25: style: Parameter 'ld' can be declared as pointer to const [constParameterPointer] head nss-pam-ldapd-0.9.12/compat/ldap_passwd_s.c:68:44: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] head nss-pam-ldapd-0.9.12/compat/ldap_passwd_s.c:68:65: style: Parameter 'oldpw' can be declared as pointer to const [constParameterPointer] head nss-pam-ldapd-0.9.12/compat/ldap_passwd_s.c:69:34: style: Parameter 'newpw' can be declared as pointer to const [constParameterPointer] head nss-pam-ldapd-0.9.12/tests/test_tio.c:308:3: error: Dereferencing 'wfp' after it is deallocated / released [deallocuse] DONE