pam-1.7.0-2.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/sbin/pam_namespace_helper:8:16: warning[SC2034]: polydir appears unused. Verify use (or export if used externally).
#    6|   # skip the leading white space, rip off the comments, ignore empty lines
#    7|   sed -e 's/^[ 	]*//g' -e 's/#.*//g' -e '/.*\$HOME.*/d'  -e '/^$/d' < $CONF | \
#    8|->     while read polydir instance_prefix method uids; do
#    9|   	if [ ! -e "$instance_prefix" ]; then
#   10|   	    echo "mkdir $instance_prefix"

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/sbin/pam_namespace_helper:8:40: warning[SC2034]: method appears unused. Verify use (or export if used externally).
#    6|   # skip the leading white space, rip off the comments, ignore empty lines
#    7|   sed -e 's/^[ 	]*//g' -e 's/#.*//g' -e '/.*\$HOME.*/d'  -e '/^$/d' < $CONF | \
#    8|->     while read polydir instance_prefix method uids; do
#    9|   	if [ ! -e "$instance_prefix" ]; then
#   10|   	    echo "mkdir $instance_prefix"

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/sbin/pam_namespace_helper:8:47: warning[SC2034]: uids appears unused. Verify use (or export if used externally).
#    6|   # skip the leading white space, rip off the comments, ignore empty lines
#    7|   sed -e 's/^[ 	]*//g' -e 's/#.*//g' -e '/.*\$HOME.*/d'  -e '/^$/d' < $CONF | \
#    8|->     while read polydir instance_prefix method uids; do
#    9|   	if [ ! -e "$instance_prefix" ]; then
#   10|   	    echo "mkdir $instance_prefix"

Error: SHELLCHECK_WARNING (CWE-277): [#def4]
/usr/sbin/pam_namespace_helper:11:22: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#    9|   	if [ ! -e "$instance_prefix" ]; then
#   10|   	    echo "mkdir $instance_prefix"
#   11|-> 	    mkdir --parents --mode=0 -Z "$instance_prefix"
#   12|   	fi
#   13|       done

Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
pam-1.7.0-build/Linux-PAM-1.7.0/doc/specs/parse_y.y: scope_hint: In function ‘set_key’
pam-1.7.0-build/Linux-PAM-1.7.0/doc/specs/parse_y.y:200:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*value’
pam-1.7.0-build/Linux-PAM-1.7.0/doc/specs/parse_y.y:7: included_from: Included from here.
/usr/include/string.h:187:14: note: argument 1 of ‘strdup’ must be a pointer to a null-terminated string
#  198|   	} else {
#  199|   	    free(root->value);
#  200|-> 	    root->value = strdup(value);
#  201|   	}
#  202|       } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
pam-1.7.0-build/Linux-PAM-1.7.0/doc/specs/parse_y.y:204:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘root’
#  202|       } else {
#  203|   	root = malloc(sizeof(struct node_s));
#  204|-> 	root->right = root->left = NULL;
#  205|   	root->key = strdup(key);
#  206|   	root->value = strdup(value);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def7]
pam-1.7.0-build/Linux-PAM-1.7.0/doc/specs/parse_y.y:206:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*value’
/usr/include/string.h:187:14: note: argument 1 of ‘strdup’ must be a pointer to a null-terminated string
#  204|   	root->right = root->left = NULL;
#  205|   	root->key = strdup(key);
#  206|-> 	root->value = strdup(value);
#  207|       }
#  208|       return root;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
pam-1.7.0-build/Linux-PAM-1.7.0/doc/specs/parse_y.y: scope_hint: In function ‘new_counter.part.0’
pam-1.7.0-build/Linux-PAM-1.7.0/doc/specs/parse_y.y:273:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
#  271|   	j=0;
#  272|   	while (--ndollars > 0) {
#  273|-> 	    new[j++] = '0';
#  274|   	    new[j++] = '.';
#  275|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
pam-1.7.0-build/Linux-PAM-1.7.0/doc/specs/parse_y.y:278:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
#  276|   	i = 0;
#  277|       }
#  278|->     new[j] = '\0';
#  279|       sprintf(new+j, "%d", ++i);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def10]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_private.h:303: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/security/_pam_macros.h:48:8: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_env.c:353:17: note: in expansion of macro ‘_pam_drop’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_env.c:352:17: note: in expansion of macro ‘pam_overwrite_string’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_env.c:352:17: note: in expansion of macro ‘pam_overwrite_string’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_env.c:353:17: note: in expansion of macro ‘_pam_drop’
#   46|   do {                 \
#   47|       free(X);         \
#   48|->     (X)=NULL;        \
#   49|   } while (0)
#   50|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/security/_pam_types.h:33:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:113:12: note: in expansion of macro ‘PAM_SERVICE_ERR’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:113:12: note: in expansion of macro ‘PAM_SERVICE_ERR’
#   31|   				/* loading a service module */
#   32|   #define PAM_SYMBOL_ERR 2	/* Symbol not found */
#   33|-> #define PAM_SERVICE_ERR 3	/* Error in service module */
#   34|   #define PAM_SYSTEM_ERR 4	/* System error */
#   35|   #define PAM_BUF_ERR 5		/* Memory buffer error */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/security/_pam_types.h:33:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:113:12: note: in expansion of macro ‘PAM_SERVICE_ERR’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:113:12: note: in expansion of macro ‘PAM_SERVICE_ERR’
#   31|   				/* loading a service module */
#   32|   #define PAM_SYMBOL_ERR 2	/* Symbol not found */
#   33|-> #define PAM_SERVICE_ERR 3	/* Error in service module */
#   34|   #define PAM_SYSTEM_ERR 4	/* System error */
#   35|   #define PAM_BUF_ERR 5		/* Memory buffer error */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/security/pam_modules.h:17: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:51: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c: scope_hint: In function ‘call_exec’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/security/_pam_types.h:33:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fds[1]’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:113:12: note: in expansion of macro ‘PAM_SERVICE_ERR’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:55: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:224:11: note: in expansion of macro ‘pam_overwrite_array’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c: scope_hint: In function ‘call_exec’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:113:12: note: in expansion of macro ‘PAM_SERVICE_ERR’
#   31|   				/* loading a service module */
#   32|   #define PAM_SYMBOL_ERR 2	/* Symbol not found */
#   33|-> #define PAM_SERVICE_ERR 3	/* Error in service module */
#   34|   #define PAM_SYSTEM_ERR 4	/* System error */
#   35|   #define PAM_BUF_ERR 5		/* Memory buffer error */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/security/_pam_types.h:33:25: warning[-Wanalyzer-malloc-leak]: leak of ‘stdout_file’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:113:12: note: in expansion of macro ‘PAM_SERVICE_ERR’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:113:12: note: in expansion of macro ‘PAM_SERVICE_ERR’
#   31|   				/* loading a service module */
#   32|   #define PAM_SYMBOL_ERR 2	/* Symbol not found */
#   33|-> #define PAM_SERVICE_ERR 3	/* Error in service module */
#   34|   #define PAM_SYSTEM_ERR 4	/* System error */
#   35|   #define PAM_BUF_ERR 5		/* Memory buffer error */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&config_file, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:59:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:30:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:33:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:33:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:34:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:34:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:44:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:44:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:46:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:46:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:48:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:48:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:49:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:49:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:50:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:50:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:51:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:51:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:52:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:52:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:53:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:53:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:54:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:54:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:55:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:55:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:58:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:58:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:58:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:59:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:59:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:5: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c: scope_hint: In function ‘main’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&config_filename, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:31:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:28:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:30:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:30:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:30:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:30:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:31:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:31:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:8: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c: scope_hint: In function ‘setup’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&my_conf, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:158:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&my_env, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:80:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:158:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:77:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:77:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:79:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:79:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:79:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:79:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:80:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:80:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&passwd_file, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:93:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:37:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:40:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:40:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:41:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:41:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:44:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:44:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:46:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:46:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:48:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:48:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:49:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:49:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:50:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:50:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:55:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:57:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:57:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:58:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:58:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:59:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:59:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:62:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:64:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:64:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:65:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:65:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:66:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:66:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:74:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:74:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:76:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:76:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:78:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:78:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:79:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:79:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:80:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:80:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:84:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:85:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:85:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:88:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:88:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:92:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:92:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:92:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:93:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:93:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:7: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c: scope_hint: In function ‘main’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&service_file, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:75:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:67:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:71:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:71:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:74:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:74:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:74:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:74:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:75:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:75:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&config_file, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:59:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:30:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:33:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:33:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:34:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:34:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:44:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:44:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:46:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:46:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:48:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:48:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:49:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:49:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:50:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:50:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:51:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:51:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:52:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:52:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:53:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:53:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:54:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:54:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:55:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:55:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:58:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:58:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:58:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:59:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_sepermit/tst-pam_sepermit-retval.c:59:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&config_filename, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:31:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:28:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:30:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:30:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:30:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:30:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:31:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_faillock/tst-pam_faillock-retval.c:31:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&my_conf, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:158:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&my_env, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:80:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:158:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:77:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:77:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:79:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:79:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:79:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:79:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:80:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_env/tst-pam_env-retval.c:80:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&passwd_file, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:93:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:37:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:40:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:40:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:41:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:41:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:44:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:44:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:46:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:46:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:48:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:48:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:49:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:49:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:50:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:50:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:55:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:57:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:57:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:58:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:58:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:59:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:59:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:62:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:64:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:64:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:65:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:65:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:66:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:66:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:71:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:74:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:74:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:76:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:76:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:78:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:78:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:79:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:79:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:80:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:80:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:84:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:85:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:85:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:88:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:88:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:92:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:92:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:92:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:93:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_localuser/tst-pam_localuser-retval.c:93:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:20:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&service_file, "w")’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:75:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:67:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:70:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:71:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:31:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:71:9: note: in expansion of macro ‘ASSERT_EQ’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:74:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:74:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:74:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:35:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:74:9: note: in expansion of macro ‘ASSERT_NE’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:19:41: note: in definition of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:75:9: note: in expansion of macro ‘ASSERT_LT’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/include/test_assert.h:39:9: note: in expansion of macro ‘ASSERT_’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_canonicalize_user/tst-pam_canonicalize_user-retval.c:75:9: note: in expansion of macro ‘ASSERT_LT’
#   18|   		__typeof__(expected_) e_ = (expected_);				\
#   19|   		__typeof__(seen_) s_ = (seen_);					\
#   20|-> 		if (e_ op_ s_) break;						\
#   21|   		fprintf(stderr,							\
#   22|   			"%s:%d: Assertion failed: %s (%#lx) %s %s (%#lx)\n",	\

Error: GCC_ANALYZER_WARNING (CWE-122): [#def27]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_env.c: scope_hint: In function ‘_copy_env’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_env.c:351:24: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_env.c:14: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_env.c:352:17: note: in expansion of macro ‘pam_overwrite_string’
#  349|   	    /* out of memory */
#  350|   
#  351|-> 	    while (dump[++i]) {
#  352|   		pam_overwrite_string(dump[i]);
#  353|   		_pam_drop(dump[i]);

Error: GCC_ANALYZER_WARNING (CWE-131): [#def28]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_handlers.c: scope_hint: In function ‘_pam_add_handler’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_handlers.c:853:38: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_handlers.c:9: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_handlers.c:716:5: note: in expansion of macro ‘IF_NO_PAMH’
#  851|   	(*handler_p2)->argc = argc;
#  852|   	if (argv) {
#  853|-> 	    if (((*handler_p2)->argv = malloc(argvlen)) == NULL) {
#  854|   		pam_syslog(pamh, LOG_CRIT, "cannot malloc argv for handler #2");
#  855|   		return (PAM_ABORT);

Error: GCC_ANALYZER_WARNING (CWE-131): [#def29]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_misc.c: scope_hint: In function ‘_pam_mkargv’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_misc.c:169:35: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
#  167|   	/* Overkill on the malloc, but not large */
#  168|   	argvlen = (l + 1) * (sizeof(char) + sizeof(char *));
#  169|-> 	if ((our_argv = argvbuf = malloc(argvlen)) == NULL) {
#  170|   	    pam_syslog(NULL, LOG_CRIT, "pam_mkargv: null returned by malloc");
#  171|   	    argvlen = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def30]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getgrgid.c: scope_hint: In function ‘pam_modutil_getgrgid’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getgrgid.c:83:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data_name’ where non-null expected
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getgrgid.c:12: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getgrgid.c: scope_hint: In function ‘pam_modutil_getgrgid’
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
#   81|   	    if (pamh != NULL) {
#   82|   	        for (i = 0; i < INT_MAX; i++) {
#   83|-> 	            sprintf(data_name, "_pammodutil_getgrgid_%ld_%d",
#   84|   			    (long) gid, i);
#   85|   		    status = PAM_NO_MODULE_DATA;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getgrnam.c: scope_hint: In function ‘pam_modutil_getgrnam’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getgrnam.c:73:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data_name’ where non-null expected
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getgrnam.c:12: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getgrnam.c: scope_hint: In function ‘pam_modutil_getgrnam’
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
#   71|   	    if (pamh != NULL) {
#   72|   	        for (i = 0; i < INT_MAX; i++) {
#   73|-> 	            sprintf(data_name, "_pammodutil_getgrnam_%s_%d", group, i);
#   74|   		    status = PAM_NO_MODULE_DATA;
#   75|   	            if (pam_get_data(pamh, data_name, &ignore) != PAM_SUCCESS) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getpwnam.c: scope_hint: In function ‘pam_modutil_getpwnam’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getpwnam.c:73:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data_name’ where non-null expected
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getpwnam.c:12: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getpwnam.c: scope_hint: In function ‘pam_modutil_getpwnam’
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
#   71|   	    if (pamh != NULL) {
#   72|   	        for (i = 0; i < INT_MAX; i++) {
#   73|-> 	            sprintf(data_name, "_pammodutil_getpwnam_%s_%d", user, i);
#   74|   		    status = PAM_NO_MODULE_DATA;
#   75|   	            if (pam_get_data(pamh, data_name, &ignore) != PAM_SUCCESS) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def33]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getpwuid.c: scope_hint: In function ‘pam_modutil_getpwuid’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getpwuid.c:83:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data_name’ where non-null expected
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getpwuid.c:12: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getpwuid.c: scope_hint: In function ‘pam_modutil_getpwuid’
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
#   81|   	    if (pamh != NULL) {
#   82|   	        for (i = 0; i < INT_MAX; i++) {
#   83|-> 	            sprintf(data_name, "_pammodutil_getpwuid_%ld_%d",
#   84|   			    (long) uid, i);
#   85|   		    status = PAM_NO_MODULE_DATA;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def34]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getspnam.c: scope_hint: In function ‘pam_modutil_getspnam’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getspnam.c:73:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data_name’ where non-null expected
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getspnam.c:12: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_getspnam.c: scope_hint: In function ‘pam_modutil_getspnam’
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
#   71|   	    if (pamh != NULL) {
#   72|   	        for (i = 0; i < INT_MAX; i++) {
#   73|-> 	            sprintf(data_name, "_pammodutil_getspnam_%s_%d", user, i);
#   74|   		    status = PAM_NO_MODULE_DATA;
#   75|   	            if (pam_get_data(pamh, data_name, &ignore) != PAM_SUCCESS) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_sanitize.c: scope_hint: In function ‘redirect_in_pipe’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_sanitize.c:29:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘in[0]’
#   27|   	if (pipe(in) < 0) {
#   28|   		pam_syslog(pamh, LOG_ERR, "Could not create pipe: %m");
#   29|-> 		return -1;
#   30|   	}
#   31|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_sanitize.c:37:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(in[0], fd)’
#   35|   		return fd;
#   36|   
#   37|-> 	if (dup2(in[0], fd) != fd) {
#   38|   		pam_syslog(pamh, LOG_ERR, "dup2 of %s failed: %m", name);
#   39|   		fd = -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_sanitize.c: scope_hint: In function ‘redirect_out_null’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_sanitize.c:60:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
#   58|   	}
#   59|   
#   60|-> 	if (null == fd)
#   61|   		return fd;
#   62|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_sanitize.c:63:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 1), fd)’
#   61|   		return fd;
#   62|   
#   63|-> 	if (dup2(null, fd) != fd) {
#   64|   		pam_syslog(pamh, LOG_ERR, "dup2 of %s failed: %m", name);
#   65|   		fd = -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_sanitize.c: scope_hint: In function ‘pam_modutil_sanitize_helper_fds’
pam-1.7.0-build/Linux-PAM-1.7.0/libpam/pam_modutil_sanitize.c:150:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(1, 2)’
#  148|   	if (stderr_mode != PAM_MODUTIL_IGNORE_FD &&
#  149|   	    stdout_mode == stderr_mode) {
#  150|-> 		if (dup2(STDOUT_FILENO, STDERR_FILENO) != STDERR_FILENO) {
#  151|   			pam_syslog(pamh, LOG_ERR,
#  152|   				   "dup2 of %s failed: %m", "stderr");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def40]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_chroot/pam_chroot.c: scope_hint: In function ‘pam_sm_open_session’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_chroot/pam_chroot.c:86:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘errbuf’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#   84|   			len = regerror(err, &name_regex, NULL, 0);
#   85|   			errbuf = malloc(len + 1);
#   86|-> 			memset(errbuf, 0, len + 1);
#   87|   			regerror(err, &name_regex, errbuf, len);
#   88|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:344:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
#  342|         if (expose_authtok)
#  343|   	{
#  344|-> 	  fds[0] = move_fd_to_non_stdio(pamh, fds[0]);
#  345|   	  close(fds[1]);
#  346|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:350:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fds[1]’
#  348|         if (use_stdout)
#  349|   	{
#  350|-> 	  stdout_fds[1] = move_fd_to_non_stdio(pamh, stdout_fds[1]);
#  351|   	  close(stdout_fds[0]);
#  352|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:359:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fds[0], 0)’
#  357|   	{
#  358|   	  /* reopen stdin as pipe */
#  359|-> 	  if (dup2(fds[0], STDIN_FILENO) == -1)
#  360|   	    {
#  361|   	      int err = errno;

Error: GCC_ANALYZER_WARNING: [#def44]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:394:19: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
#  392|   	  if (i != STDOUT_FILENO)
#  393|   	    {
#  394|-> 	      if (dup2 (i, STDOUT_FILENO) == -1)
#  395|   		{
#  396|   		  int err = errno;

Error: GCC_ANALYZER_WARNING (CWE-910): [#def45]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:410:11: warning[-Wanalyzer-fd-use-after-close]: ‘dup2’ on closed file descriptor ‘1’
#  408|   
#  409|         if ((use_stdout || logfile) &&
#  410|-> 	  dup2 (STDOUT_FILENO, STDERR_FILENO) == -1)
#  411|   	{
#  412|   	  int err = errno;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def46]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:487:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_exec/pam_exec.c:44: included_from: Included from here.
/usr/include/unistd.h:572:12: note: argument 1 of ‘execve’ must be non-null
#  485|   
#  486|         DIAG_PUSH_IGNORE_CAST_QUAL;
#  487|->       execve (arggv[0], (char **) arggv, envlist);
#  488|         DIAG_POP_IGNORE_CAST_QUAL;
#  489|         i = errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_filter/pam_filter.c:53:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/ptmx", 2)’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_filter/pam_filter.c: scope_hint: In function ‘set_filter’
#   51|       int fd;
#   52|   
#   53|->     if ((fd = open(DEV_PTMX, O_RDWR)) >= 0) {
#   54|   	return fd;
#   55|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_group/pam_group.c: scope_hint: In function ‘read_field’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_group/pam_group.c:133:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_group/pam_group.c:603:24: note: in expansion of macro ‘blk_size’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_group/pam_group.c:44: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_group/pam_group.c:132:9: note: in expansion of macro ‘_pam_drop’
#  131|   	/* nothing previously in buf, nothing read */
#  132|   	_pam_drop(*buf);
#  133|-> 	*state = STATE_EOF;
#  134|   	return -1;
#  135|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def49]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_issue/pam_issue.c: scope_hint: In function ‘read_issue_quoted’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_issue/pam_issue.c:234:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src’
#  232|   	    issue = new_issue;
#  233|   	}
#  234|-> 	memcpy(issue + issue_len, src, len);
#  235|   	issue_len += len;
#  236|       }

Error: COMPILER_WARNING (CWE-563): [#def50]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c: scope_hint: In function ‘pam_sm_authenticate’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c:59:48: warning[-Wunused-parameter]: unused parameter ‘flags’
#   59 | int pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc
#      |                                            ~~~~^~~~~
#   57|   
#   58|   PAM_EXTERN
#   59|-> int pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc
#   60|   			,const char **argv)
#   61|   {

Error: COMPILER_WARNING (CWE-563): [#def51]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c: scope_hint: In function ‘pam_sm_setcred’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c:84:34: warning[-Wunused-parameter]: unused parameter ‘pamh’
#   84 | int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc
#      |                    ~~~~~~~~~~~~~~^~~~
#   82|   
#   83|   PAM_EXTERN
#   84|-> int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc
#   85|   		   ,const char **argv)
#   86|   {

Error: COMPILER_WARNING (CWE-563): [#def52]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c:84:43: warning[-Wunused-parameter]: unused parameter ‘flags’
#   84 | int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc
#      |                                       ~~~~^~~~~
#   82|   
#   83|   PAM_EXTERN
#   84|-> int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc
#   85|   		   ,const char **argv)
#   86|   {

Error: COMPILER_WARNING (CWE-563): [#def53]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c:84:53: warning[-Wunused-parameter]: unused parameter ‘argc’
#   84 | int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc
#      |                                                 ~~~~^~~~
#   82|   
#   83|   PAM_EXTERN
#   84|-> int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc
#   85|   		   ,const char **argv)
#   86|   {

Error: COMPILER_WARNING (CWE-563): [#def54]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c:85:34: warning[-Wunused-parameter]: unused parameter ‘argv’
#   85 |                    ,const char **argv)
#      |                     ~~~~~~~~~~~~~^~~~
#   83|   PAM_EXTERN
#   84|   int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc
#   85|-> 		   ,const char **argv)
#   86|   {
#   87|       return PAM_SUCCESS;

Error: CPPCHECK_WARNING (CWE-457): [#def55]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_pwhistory/opasswd.c:202: warning[uninitvar]: Uninitialized variable: entry.old_passwords
#  200|     fclose (oldpf);
#  201|   
#  202|->   if (found && entry.old_passwords)
#  203|       {
#  204|         const char delimiters[] = ",";

Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_pwhistory/pam_pwhistory.c: scope_hint: In function ‘run_check_helper’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_pwhistory/pam_pwhistory.c:213:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fds[0], 0)’
#  211|   
#  212|         /* reopen stdin as pipe */
#  213|->       if (dup2(fds[0], STDIN_FILENO) != STDIN_FILENO)
#  214|           {
#  215|             pam_syslog(pamh, LOG_ERR, "dup2 of %s failed: %m", "stdin");

Error: CPPCHECK_WARNING (CWE-457): [#def57]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_pwhistory/pwhistory_helper.c:71: error[uninitvar]: Uninitialized variable: pass
#   69|       }
#   70|   
#   71|->   retval = check_old_pass(user, pass, filename, dbg);
#   72|   
#   73|     pam_overwrite_array(pass);	/* clear memory of the password */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_time/pam_time.c: scope_hint: In function ‘read_field’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_time/pam_time.c:186:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_time/pam_time.c:26: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_time/pam_time.c:185:9: note: in expansion of macro ‘_pam_drop’
#  184|   	/* nothing previously in buf, nothing read */
#  185|   	_pam_drop(*buf);
#  186|-> 	*state = STATE_EOF;
#  187|   	return -1;
#  188|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/pam_unix_acct.c: scope_hint: In function ‘_unix_run_verify_binary’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/pam_unix_acct.c:103:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fds[1], 1)’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/pam_unix_acct.c:62: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/support.h:40:23: note: in expansion of macro ‘on’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/pam_unix_acct.c:80:7: note: in expansion of macro ‘off’
#  101|   
#  102|       /* reopen stdout as pipe */
#  103|->     if (dup2(fds[1], STDOUT_FILENO) != STDOUT_FILENO) {
#  104|         pam_syslog(pamh, LOG_ERR, "dup2 of %s failed: %m", "stdout");
#  105|         _exit(PAM_AUTHINFO_UNAVAIL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/pam_unix_passwd.c: scope_hint: In function ‘_unix_run_update_binary’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/pam_unix_passwd.c:262:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fds[0], 0)’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/pam_unix_passwd.c:73: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/support.h:40:23: note: in expansion of macro ‘on’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/pam_unix_passwd.c:238:9: note: in expansion of macro ‘off’
#  260|   
#  261|   	/* reopen stdin as pipe */
#  262|-> 	if (dup2(fds[0], STDIN_FILENO) != STDIN_FILENO) {
#  263|   		pam_syslog(pamh, LOG_ERR, "dup2 of %s failed: %m", "stdin");
#  264|   		_exit(PAM_AUTHINFO_UNAVAIL);

Error: CPPCHECK_WARNING (CWE-457): [#def61]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/passverify.c:424: error[uninitvar]: Uninitialized variable: src
#  422|           i = clock();
#  423|           GoodMD5Update(&ctx, (void *) &i, sizeof i);
#  424|->         GoodMD5Update(&ctx, src, length);
#  425|           GoodMD5Final(tmp, &ctx);
#  426|   #ifdef PAM_PATH_RANDOMDEV

Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/support.c: scope_hint: In function ‘_unix_run_helper_binary’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/support.c:555:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fds[0], 0)’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/support.c:33: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/support.h:40:23: note: in expansion of macro ‘on’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_unix/support.c:532:9: note: in expansion of macro ‘off’
#  553|   
#  554|   	/* reopen stdin as pipe */
#  555|-> 	if (dup2(fds[0], STDIN_FILENO) != STDIN_FILENO) {
#  556|   		pam_syslog(pamh, LOG_ERR, "dup2 of %s failed: %m", "stdin");
#  557|   		_exit(PAM_AUTHINFO_UNAVAIL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_xauth/pam_xauth.c: scope_hint: In function ‘run_coprocess’
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_xauth/pam_xauth.c:160:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(ipipe[0], 0)’
#  158|   		 * everything else, including the original values for the
#  159|   		 * descriptors. */
#  160|-> 		if (dup2(ipipe[0], STDIN_FILENO) != STDIN_FILENO) {
#  161|   		    int err = errno;
#  162|   		    pam_syslog(pamh, LOG_ERR, "dup2 of %s failed: %m", "stdin");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_xauth/pam_xauth.c:165:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(opipe[1], 1)’
#  163|   		    _exit(err);
#  164|   		}
#  165|-> 		if (dup2(opipe[1], STDOUT_FILENO) != STDOUT_FILENO) {
#  166|   		    int err = errno;
#  167|   		    pam_syslog(pamh, LOG_ERR, "dup2 of %s failed: %m", "stdout");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c: scope_hint: In function ‘yy_get_next_buffer’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c:1000:18: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c: scope_hint: In function ‘yy_get_next_buffer’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c: scope_hint: In function ‘yy_get_next_buffer’
#  998|   				else
#  999|   					b->yy_buf_size *= 2;
# 1000|-> 
# 1001|   				b->yy_ch_buf = (char *)
# 1002|   					/* Include room in for 2 EOB chars. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c: scope_hint: In function ‘yy_create_buffer’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c:1322:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c: scope_hint: In function ‘yy_create_buffer’
# 1320|   	 * we need to put in 2 end-of-buffer characters.
# 1321|   	 */
# 1322|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1323|   	if ( ! b->yy_ch_buf )
# 1324|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: CPPCHECK_WARNING (CWE-476): [#def67]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c:1362: warning[nullPointer]: Possible null pointer dereference: b
# 1360|       
# 1361|   	yy_flush_buffer( b );
# 1362|-> 
# 1363|   	b->yy_input_file = file;
# 1364|   	b->yy_fill_buffer = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def68]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c:1363: warning[nullPointer]: Possible null pointer dereference: b
# 1361|   	yy_flush_buffer( b );
# 1362|   
# 1363|-> 	b->yy_input_file = file;
# 1364|   	b->yy_fill_buffer = 1;
# 1365|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c: scope_hint: In function ‘yy_scan_buffer’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c:1576:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_l.c: scope_hint: In function ‘yy_scan_buffer’
# 1574|   	for ( i = 0; i < _yybytes_len; ++i )
# 1575|   		buf[i] = yybytes[i];
# 1576|-> 
# 1577|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1578|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def70]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_y.c: scope_hint: In function ‘yyparse’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_y.c:462:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_y.c:447:9: note: in expansion of macro ‘YYCOPY’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_y.c:969:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_y.c:447:9: note: in expansion of macro ‘YYCOPY’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_y.c:969:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_y.c:447:9: note: in expansion of macro ‘YYCOPY’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_y.c:969:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  460|   #  if defined __GNUC__ && 1 < __GNUC__
#  461|   #   define YYCOPY(Dst, Src, Count) \
#  462|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  463|   #  else
#  464|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def71]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/conf/pam_conv1/pam_conv_y.c:1096:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
# 1094|        unconditionally makes the parser a bit smaller, and it avoids a
# 1095|        GCC warning that YYVAL may be used uninitialized.  */
# 1096|->   yyval = yyvsp[1-yylen];
# 1097|   
# 1098|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c: scope_hint: In function ‘yy_get_next_buffer’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c:988:18: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c: scope_hint: In function ‘yy_get_next_buffer’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c: scope_hint: In function ‘yy_get_next_buffer’
#  986|   				else
#  987|   					b->yy_buf_size *= 2;
#  988|-> 
#  989|   				b->yy_ch_buf = (char *)
#  990|   					/* Include room in for 2 EOB chars. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c: scope_hint: In function ‘yy_create_buffer’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c:1310:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c: scope_hint: In function ‘yy_create_buffer’
# 1308|   	 * we need to put in 2 end-of-buffer characters.
# 1309|   	 */
# 1310|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1311|   	if ( ! b->yy_ch_buf )
# 1312|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: CPPCHECK_WARNING (CWE-476): [#def74]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c:1350: warning[nullPointer]: Possible null pointer dereference: b
# 1348|       
# 1349|   	yy_flush_buffer( b );
# 1350|-> 
# 1351|   	b->yy_input_file = file;
# 1352|   	b->yy_fill_buffer = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def75]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c:1351: warning[nullPointer]: Possible null pointer dereference: b
# 1349|   	yy_flush_buffer( b );
# 1350|   
# 1351|-> 	b->yy_input_file = file;
# 1352|   	b->yy_fill_buffer = 1;
# 1353|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c: scope_hint: In function ‘yy_scan_buffer’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c:1564:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/doc/specs/parse_l.c: scope_hint: In function ‘yy_scan_buffer’
# 1562|   	for ( i = 0; i < _yybytes_len; ++i )
# 1563|   		buf[i] = yybytes[i];
# 1564|-> 
# 1565|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1566|   

Error: COMPILER_WARNING: [#def77]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c:12: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/libpam/include/config.h:137:9: warning: "_GNU_SOURCE" redefined
#  137 | #define _GNU_SOURCE 1
#      |         ^~~~~~~~~~~
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c:10:9: note: this is the location of the previous definition
#   10 | #define _GNU_SOURCE
#      |         ^~~~~~~~~~~
#  135|   #define WITH_SELINUX 1
#  136|   
#  137|-> #define _GNU_SOURCE 1
#  138|   
#  139|   #define _PAM_ISA "../../lib64/security"

Error: COMPILER_WARNING: [#def78]
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c:12: included_from: Included from here.
pam-1.7.0-build/Linux-PAM-1.7.0/redhat-linux-build/libpam/include/config.h:137:9: warning: ‘_GNU_SOURCE’ redefined
pam-1.7.0-build/Linux-PAM-1.7.0/modules/pam_postgresok/pam_postgresok.c:10:9: note: this is the location of the previous definition
#  135|   #define WITH_SELINUX 1
#  136|   
#  137|-> #define _GNU_SOURCE 1
#  138|   
#  139|   #define _PAM_ISA "../../lib64/security"

Error: GCC_ANALYZER_WARNING (CWE-126): [#def79]
pam-1.7.0-build/Linux-PAM-1.7.0/tests/tst-pam_getenvlist.c: scope_hint: In function ‘main’
pam-1.7.0-build/Linux-PAM-1.7.0/tests/tst-pam_getenvlist.c:116:15: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pam-1.7.0-build/Linux-PAM-1.7.0/tests/tst-pam_getenvlist.c:116:15: note: read of 8 bytes from after the end of ‘envvals’
pam-1.7.0-build/Linux-PAM-1.7.0/tests/tst-pam_getenvlist.c:116:15: note: valid subscripts for ‘envvals’ are ‘[0]’ to ‘[2]’
#  114|         while (temp)
#  115|   	{
#  116|-> 	  if (strcmp (temp, envvals[var]) != 0)
#  117|   	    {
#  118|   	      fprintf (stderr,

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-192.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namepam-1.7.0-2.fc42
store-results-to/tmp/tmpt7d4uuut/pam-1.7.0-2.fc42.tar.xz
time-created2024-11-13 02:16:04
time-finished2024-11-13 02:22:25
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpt7d4uuut/pam-1.7.0-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpt7d4uuut/pam-1.7.0-2.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9