Task #137234 - added.err

back to task #137234
download
Error: GCC_ANALYZER_WARNING (CWE-688):
sssd-2.14.0/src/sss_client/pam_sss.c: scope_hint: In function 'prompt_multi_cert.part.0'
sssd-2.14.0/src/sss_client/pam_sss.c:2439:16: warning[-Wanalyzer-null-argument]: use of NULL 'answer' where non-null expected
sssd-2.14.0/src/sss_client/pam_sss.c:116: included_from: Included from here.
sssd-2.14.0/src/sss_client/pam_sss.c:2418:5: note: in expansion of macro 'DLIST_FOR_EACH'
sssd-2.14.0/src/sss_client/pam_sss.c:32: included_from: Included from here.
/usr/include/features.h:540: included_from: Included from here.
/usr/include/sys/types.h:25: included_from: Included from here.
sssd-2.14.0/src/sss_client/pam_sss.c:23: included_from: Included from here.
/usr/include/stdlib.h:219:17: note: argument 1 of 'strtol' must be non-null
# 2437|   
# 2438|           errno = 0;
# 2439|->         resp = strtol(answer, &ep, 10);
# 2440|           if (errno == 0 && *ep == '\0' && resp > 0 && resp <= cert_count) {
# 2441|               /* do not free answer ealier because ep is pointing to it */