2025-06-29 10:11 ftp://ftp.de.debian.org/debian/pool/main/n/nss-pam-ldapd/nss-pam-ldapd_0.9.13.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 -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: ca83f56 (2025-06-29 00:31:22 +0200) count: 330 321 elapsed-time: 0.8 0.8 head-timing-info: old-timing-info: head results: nss-pam-ldapd-0.9.13/common/nslcd-prot.c:71:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/expr.c:77:54: debug: Function::addArguments found argument 'name' with varid 0. [varid0] nss-pam-ldapd-0.9.13/compat/ether.c:41:22: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/compat/getopt_long.c:40:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/compat/getpeercred.c:112:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/compat/getpeercred.c:43:34: style: Parameter 'uid' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/compat/getpeercred.c:43:46: style: Parameter 'gid' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/compat/getpeercred.c:43:58: style: Parameter 'pid' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/compat/ldap_initialize.c:52:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/compat/ldap_parse_passwordpolicy_control.c:47:52: debug: Function::addArguments found argument 'ld' with varid 0. [varid0] nss-pam-ldapd-0.9.13/compat/ldap_parse_passwordpolicy_control.c:61:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_LOCAL_ERROR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/compat/ldap_passwd_s.c:69:63: debug: Function::addArguments found argument 'newpasswd' with varid 0. [varid0] nss-pam-ldapd-0.9.13/compat/ldap_passwd_s.c:73:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_OPERATIONS_ERROR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/compat/ldap_passwd_s.c:68:25: style: Parameter 'ld' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/compat/ldap_passwd_s.c:68:44: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/compat/ldap_passwd_s.c:68:65: style: Parameter 'oldpw' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/compat/ldap_passwd_s.c:69:34: style: Parameter 'newpw' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/compat/pagectrl.c:94:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_PARAM_ERROR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/compat/pagectrl.c:170:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_PARAM_ERROR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/expr.c:149:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/expr.c:313:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/expr.c:360:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLTHROUGH [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/tio.c:96:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/tio.c:165:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/tio.c:262:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/tio.c:312:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/tio.c:342:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/tio.c:389:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLOUT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/common/tio.c:405:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/compat/pagectrl.c:153:33: style: Parameter 'ld' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/compat/pam_get_authtok.c:48:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/compat/pam_prompt.c:41:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PAM_CONV [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/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.13/common/dict.c:163:22: style: Parameter 'dict' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/nslcd/config.c:36:56: debug: Function::addArguments found argument 'session' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nslcd/config.c:44:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/config.c:38:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nslcd/attmap.c:257:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/attmap.c:279:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/daemonize.c:51:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_OPEN_MAX [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/daemonize.c:68:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/daemonize.c:85:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/daemonize.c:102:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/daemonize.c:148:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/common.c:131:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/common.c:218:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/common.c:258:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/common.c:289:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:210:38: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nslcd/common.c:136:10: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] nss-pam-ldapd-0.9.13/nslcd/common.c:124:19: style: Variable 'host' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/nslcd/common.c:214:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nslcd/common.c:254:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/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.13/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.13/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.13/nslcd/cfg.c:86:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:105:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:168:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:195:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:226:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:284:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:325:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:345:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:367:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:400:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:493:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:514:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:527:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:569:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:682:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:718:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_SCOPE_SUBTREE [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/log.c:91:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:758:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_DEREF_NEVER [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/log.c:115:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:792:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/log.c:139:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_EMERG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:815:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/log.c:147:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:992:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/log.c:185:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1006:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_EXTENDED [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/log.c:214:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1066:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/log.c:260:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1114:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/log.c:326:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_EMERG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1167:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1198:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1221:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_SCOPE_BASE [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1273:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_VERSION2 [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1342:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1833:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/cfg.c:2049:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/invalidator.c:91:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/invalidator.c:163:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/invalidator.c:208:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/invalidator.c:271:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/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.13/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.13/nslcd/myldap.c:2354:60: debug: Function::addArguments found argument 'entry' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nslcd/nslcd.c:227: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.13/common/expr.c:227:15: style: Checking if unsigned expression 'buflen' is less than zero. [unsignedLessThanZero] nss-pam-ldapd-0.9.13/common/expr.c:328:45: style:inconclusive: Function 'expr_parse' argument 1 names different: declaration 'expr' definition 'str'. [funcArgNamesDifferent] nss-pam-ldapd-0.9.13/common/expr.h:34:45: note: Function 'expr_parse' argument 1 names different: declaration 'expr' definition 'str'. nss-pam-ldapd-0.9.13/common/expr.c:328:45: note: Function 'expr_parse' argument 1 names different: declaration 'expr' definition 'str'. nss-pam-ldapd-0.9.13/common/expr.c:336:28: style:inconclusive: Function 'expr_vars' argument 1 names different: declaration 'expr' definition 'str'. [funcArgNamesDifferent] nss-pam-ldapd-0.9.13/common/expr.h:39:28: note: Function 'expr_vars' argument 1 names different: declaration 'expr' definition 'str'. nss-pam-ldapd-0.9.13/common/expr.c:336:28: note: Function 'expr_vars' argument 1 names different: declaration 'expr' definition 'str'. nss-pam-ldapd-0.9.13/nslcd/nsswitch.c:58:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/nsswitch.c:122:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/nsswitch.c:142:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/nsswitch.c:176:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/passwd.c:584: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.13/nslcd/pam.c:603:56: debug: Function::addArguments found argument 'session' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nslcd/pam.c:636:56: debug: Function::addArguments found argument 'session' with varid 0. [varid0] nss-pam-ldapd-0.9.13/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.13/nslcd/attmap.c:268:35: style: Checking if unsigned expression 'buflen' is less than zero. [unsignedLessThanZero] nss-pam-ldapd-0.9.13/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.13/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.13/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.13/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.13/nslcd/myldap.c:174:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:205:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:264:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:315:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:696:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:807:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:895:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:993:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1027:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1080:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1136:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1179:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_SCOPE_BASE [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1264:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1283:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1305:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_UNAVAILABLE [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1439:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1457:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1544:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1754:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1812:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1902:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1978:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bv_len [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2010:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2122:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2149:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2198:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2440:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2452:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2497:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2510:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:52:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:79:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:144:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:188:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_UNAVAILABLE [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:259:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:289:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:322:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSLCD_PAM_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:423:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSLCD_PAM_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:515:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:566:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:624:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:650:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:676:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_LOCAL_ERROR [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:741:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_UNAVAILABLE [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/pam.c:797:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/ethers.c:39:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable etherent [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/bsdnss.c:105:45: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nss/bsdnss.c:125:46: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nss/bsdnss.c:145:45: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nss/bsdnss.c:185:47: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nss/bsdnss.c:220:49: debug: Function::addArguments found argument 'source' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nss/bsdnss.c:230:45: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nss/bsdnss.c:291:43: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nss/bsdnss.c:308:43: debug: Function::addArguments found argument 'retval' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nss/ethers.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/ethers.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/ethers.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/group.c:40:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable group [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/group.c:54:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSLCD_RESULT_BEGIN [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/bsdnss.c:121:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h_errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/bsdnss.c:141:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h_errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/bsdnss.c:163:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h_errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/bsdnss.c:204:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSS_STATUS_UNAVAIL [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/bsdnss.c:260:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable group_val [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/bsdnss.c:301:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __netgrent [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/group.c:39:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/group.c:38:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/group.c:38:21: style: Unused variable: tmp2int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/group.c:38:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/group.c:39:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/group.c:55:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/group.c:55:21: style: Unused variable: tmp2int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/group.c:55:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/hosts.c:107:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSS_STATUS_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/hosts.c:124:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSS_STATUS_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/bsdnss.c:262:11: warning: If memory allocation fails, then there is a possible null pointer dereference: netlist [nullPointerOutOfMemory] nss-pam-ldapd-0.9.13/nss/bsdnss.c:261:47: note: Assuming allocation function fails nss-pam-ldapd-0.9.13/nss/bsdnss.c:261:21: note: Assignment 'netlist=(struct name_list*)malloc(sizeof(struct name_list))', assigned value is 0 nss-pam-ldapd-0.9.13/nss/bsdnss.c:262:11: note: Null pointer dereference nss-pam-ldapd-0.9.13/nss/bsdnss.c:263:11: warning: If memory allocation fails, then there is a possible null pointer dereference: netlist [nullPointerOutOfMemory] nss-pam-ldapd-0.9.13/nss/bsdnss.c:261:47: note: Assuming allocation function fails nss-pam-ldapd-0.9.13/nss/bsdnss.c:261:21: note: Assignment 'netlist=(struct name_list*)malloc(sizeof(struct name_list))', assigned value is 0 nss-pam-ldapd-0.9.13/nss/bsdnss.c:263:11: note: Null pointer dereference nss-pam-ldapd-0.9.13/nss/bsdnss.c:117:6: style: Variable 'af' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/bsdnss.c:137:6: style: Variable 'af' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nslcd/usermod.c:51:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/usermod.c:77:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/usermod.c:115:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_UNAVAILABLE [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/usermod.c:148:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mod_op [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/usermod.c:159:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LDAP_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/hosts.c:74:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/hosts.c:70:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/hosts.c:70:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/hosts.c:74:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/hosts.c:117:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/netgroup.c:44:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSLCD_NETGROUP_TYPE_NETGROUP [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/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.13/nss/netgroup.c:89:3: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] nss-pam-ldapd-0.9.13/nss/netgroup.c:41:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/netgroup.c:39:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/netgroup.c:41:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/networks.c:72:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSS_STATUS_NOTFOUND [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/passwd.c:51:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSS_STATUS_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/passwd.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/passwd.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/passwd.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/protocols.c:43:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSS_STATUS_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/protocols.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/protocols.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/protocols.c:37:21: style: Unused variable: tmp2int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/protocols.c:37:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/protocols.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/networks.c:71:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/networks.c:68:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/networks.c:71:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/rpc.c:39:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rpcent [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/rpc.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/rpc.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/rpc.c:37:21: style: Unused variable: tmp2int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/rpc.c:37:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/rpc.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/services.c:47:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSS_STATUS_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/services.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/services.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/services.c:37:32: style: Unused variable: tmp3int32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/services.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/shadow.c:39:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable spwd [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/shadow.c:38:17: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/shadow.c:37:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nss/shadow.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nss/solnss.c:42:66: debug: Function::addArguments found argument 'args' with varid 0. [varid0] nss-pam-ldapd-0.9.13/nss/solnss.c:33:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nss_ldap_backend [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nss/solnss.c:48:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NSS_STATUS_SUCCESS [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/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.13/tests/lookup_groupbyuser.c:35:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/lookup_groupbyuser.c:33:25: style: Parameter 'argv' can be declared as const array [constParameter] nss-pam-ldapd-0.9.13/tests/lookup_netgroup.c:37:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/lookup_shadow.c:33:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/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.13/tests/lookup_shadow.c:31:25: style: Parameter 'argv' can be declared as const array [constParameter] nss-pam-ldapd-0.9.13/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.13/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.13/tests/test_clock.c:94:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.13/tests/test_common.c:48:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.13/tests/test_common.c:64:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/test_clock.c:44:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/test_clock.c:150:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/test_common.c:50:9: style: Variable 'srcdir' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/tests/test_dict.c:181:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.13/tests/test_dict.c:91:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/test_dict.c:165:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/nslcd/usermod.c:93:9: style: Variable 'l' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/nslcd/usermod.c:158:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nslcd/usermod.c:165:10: style: Variable 'buflen' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nslcd/usermod.c:166:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/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.13/tests/test_getpeercred.c:110:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.13/tests/common.h:79:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/test_getpeercred.c:53:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/test_getpeercred.c:75:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_storage [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/test_getpeercred.c:92:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/test_getpeercred.c:127:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/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.13/tests/test_dict.c:38:9: style: Variable 'val' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/tests/test_dict.c:84:9: style: Variable 'val' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/tests/test_dict.c:127:9: style: Variable 'val' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/tests/test_dict.c:183:9: style: Variable 'srcdir' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/tests/test_getpeercred.c:126:17: warning: Assert statement calls a function which may have desired side effects: 'geteuid'. [assertWithSideEffect] nss-pam-ldapd-0.9.13/tests/test_set.c:41:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.13/tests/test_getpeercred.c:121:9: style: Variable 'csock' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/tests/test_set.c:72:25: warning: Assert statement modifies 'v'. [assignmentInAssert] nss-pam-ldapd-0.9.13/tests/test_set.c:74:25: warning: Assert statement modifies 'v'. [assignmentInAssert] nss-pam-ldapd-0.9.13/tests/test_set.c:76:25: warning: Assert statement modifies 'v'. [assignmentInAssert] nss-pam-ldapd-0.9.13/tests/test_tio.c:355:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.13/tests/test_tio_timeout.c:28:21: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] nss-pam-ldapd-0.9.13/tests/test_tio.c:295:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/tests/test_tio.c:333:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] nss-pam-ldapd-0.9.13/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.13/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.13/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.13/nslcd/cfg.c:971: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.13/nslcd/cfg.c:990: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.13/nslcd/cfg.c:278:18: style: Variable 'pwent' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/nslcd/cfg.c:319:17: style: Variable 'grent' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/nslcd/cfg.c:656:45: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1094:44: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1104:44: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] nss-pam-ldapd-0.9.13/nslcd/cfg.c:1832:8: style: Variable 'scopep' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/tests/test_tio.c:105:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.13/tests/test_tio.c:226:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.13/tests/test_tio.c:236:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.13/tests/test_tio.c:247:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.13/tests/test_tio.c:258:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.13/tests/test_tio.c:268:35: warning: Assert statement modifies 'i'. [assignmentInAssert] nss-pam-ldapd-0.9.13/tests/test_tio.c:308:3: error: Resource handle 'wfp' freed twice. [doubleFree] nss-pam-ldapd-0.9.13/tests/test_tio.c:308:3: note: Resource handle 'wfp' freed twice. nss-pam-ldapd-0.9.13/tests/test_tio.c:308:3: note: Resource handle 'wfp' freed twice. nss-pam-ldapd-0.9.13/tests/test_tio.c:308:3: error: Dereferencing 'wfp' after it is deallocated / released [deallocuse] nss-pam-ldapd-0.9.13/tests/test_tio.c:133:5: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] nss-pam-ldapd-0.9.13/tests/test_tio.c:124:14: note: Assuming allocation function fails nss-pam-ldapd-0.9.13/tests/test_tio.c:124:14: note: Assignment 'fp=fdopen(hargs->fd,"wb")', assigned value is 0 nss-pam-ldapd-0.9.13/tests/test_tio.c:133:5: note: Null pointer dereference nss-pam-ldapd-0.9.13/tests/test_tio.c:156:7: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] nss-pam-ldapd-0.9.13/tests/test_tio.c:148:14: note: Assuming allocation function fails nss-pam-ldapd-0.9.13/tests/test_tio.c:148:14: note: Assignment 'fp=fdopen(hargs->fd,"rb")', assigned value is 0 nss-pam-ldapd-0.9.13/tests/test_tio.c:156:7: note: Null pointer dereference nss-pam-ldapd-0.9.13/tests/test_tio.c:119:23: style: Variable 'hargs' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/tests/test_tio.c:146:23: style: Variable 'hargs' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/tests/test_tio_timeout.c:40:19: style: Same expression on both sides of '/'. [duplicateExpression] nss-pam-ldapd-0.9.13/tests/test_tio_timeout.c:32:19: note: 'sleeptime' is assigned value '1000' here. nss-pam-ldapd-0.9.13/tests/test_tio_timeout.c:40:19: note: Same expression on both sides of '/'. nss-pam-ldapd-0.9.13/nslcd/myldap.c:188:21: style: Condition 'msg_diag==NULL' is always true [knownConditionTrueFalse] nss-pam-ldapd-0.9.13/nslcd/myldap.c:165:20: note: Assignment 'msg_diag=NULL', assigned value is 0 nss-pam-ldapd-0.9.13/nslcd/myldap.c:188:21: note: Condition 'msg_diag==NULL' is always true nss-pam-ldapd-0.9.13/nslcd/myldap.c:188:53: style: Condition 'msg_diag==NULL' is always true [knownConditionTrueFalse] nss-pam-ldapd-0.9.13/nslcd/myldap.c:165:20: note: Assignment 'msg_diag=NULL', assigned value is 0 nss-pam-ldapd-0.9.13/nslcd/myldap.c:188:53: note: Condition 'msg_diag==NULL' is always true nss-pam-ldapd-0.9.13/nslcd/myldap.c:2522:25: style: Condition 'msg_diag!=NULL' is always false [knownConditionTrueFalse] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2507:20: note: Assignment 'msg_diag=NULL', assigned value is 0 nss-pam-ldapd-0.9.13/nslcd/myldap.c:2508:45: note: Assuming condition is false nss-pam-ldapd-0.9.13/nslcd/myldap.c:2522:25: note: Condition 'msg_diag!=NULL' is always false nss-pam-ldapd-0.9.13/nslcd/myldap.c:2508:56: style: Checking if unsigned expression 'buflen' is less than zero. [unsignedLessThanZero] nss-pam-ldapd-0.9.13/nslcd/myldap.c:668:7: style: Unused variable: rc [unusedVariable] nss-pam-ldapd-0.9.13/nslcd/myldap.c:906:13: style: Variable 'tv.tv_sec' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nslcd/myldap.c:907:14: style: Variable 'tv.tv_usec' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nslcd/myldap.c:1300:17: style: Variable 'sleeptime' is assigned a value that is never used. [unreadVariable] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2402:7: style: Unused variable: i [unusedVariable] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2403:7: style: Unused variable: rc [unusedVariable] nss-pam-ldapd-0.9.13/nslcd/pam.c:178:17: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] nss-pam-ldapd-0.9.13/nslcd/pam.c:164:7: warning: Uninitialized variable: rc [uninitvar] nss-pam-ldapd-0.9.13/nslcd/pam.c:145:44: note: Assuming condition is false nss-pam-ldapd-0.9.13/nslcd/pam.c:164:7: note: Uninitialized variable: rc nss-pam-ldapd-0.9.13/nslcd/pam.c:417:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nslcd/pam.c:552:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nslcd/pam.c:605:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nslcd/pam.c:638:11: style: Unused variable: tmpint32 [unusedVariable] nss-pam-ldapd-0.9.13/nslcd/pam.c:776:11: style: Unused variable: tmpint32 [unusedVariable] diff: head nss-pam-ldapd-0.9.13/nslcd/myldap.c:188:53: style: Condition 'msg_diag==NULL' is always true [knownConditionTrueFalse] nss-pam-ldapd-0.9.13/nslcd/myldap.c:165:20: note: Assignment 'msg_diag=NULL', assigned value is 0 nss-pam-ldapd-0.9.13/nslcd/myldap.c:188:53: note: Condition 'msg_diag==NULL' is always true 2.17.0 nss-pam-ldapd-0.9.13/nslcd/myldap.c:191:16: style: Condition 'msg_diag!=NULL' is always false [knownConditionTrueFalse] nss-pam-ldapd-0.9.13/nslcd/myldap.c:165:20: note: Assignment 'msg_diag=NULL', assigned value is 0 nss-pam-ldapd-0.9.13/nslcd/myldap.c:191:16: note: Condition 'msg_diag!=NULL' is always false 2.17.0 nss-pam-ldapd-0.9.13/nslcd/myldap.c:2525:16: style: Condition 'msg_diag!=NULL' is always false [knownConditionTrueFalse] nss-pam-ldapd-0.9.13/nslcd/myldap.c:2507:20: note: Assignment 'msg_diag=NULL', assigned value is 0 nss-pam-ldapd-0.9.13/nslcd/myldap.c:2508:45: note: Assuming condition is false nss-pam-ldapd-0.9.13/nslcd/myldap.c:2525:16: note: Condition 'msg_diag!=NULL' is always false head nss-pam-ldapd-0.9.13/nss/ethers.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] head nss-pam-ldapd-0.9.13/nss/group.c:39:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] head nss-pam-ldapd-0.9.13/nss/hosts.c:74:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] head nss-pam-ldapd-0.9.13/nss/netgroup.c:41:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] head nss-pam-ldapd-0.9.13/nss/networks.c:71:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] head nss-pam-ldapd-0.9.13/nss/passwd.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] head nss-pam-ldapd-0.9.13/nss/protocols.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] head nss-pam-ldapd-0.9.13/nss/rpc.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] head nss-pam-ldapd-0.9.13/nss/services.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] head nss-pam-ldapd-0.9.13/nss/shadow.c:38:10: style: Variable 'bufptr' is assigned a value that is never used. [unreadVariable] DONE