p11-kit-0.25.5-4.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:74:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-cer.c:103:17: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:345:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:389:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/enumerate.c:752:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-cer.c:103:17: note: in expansion of macro ‘return_val_if_fail’
#   72|   
#   73|   #define return_val_if_fail(x, v) \
#   74|-> 	do { if (x) { } else {							\
#   75|   	     p11_debug_precond ("p11-kit: '%s' not true at %s\n", #x, __func__); \
#   76|   	     return v; \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c: scope_hint: In function ‘p11_kit_pin_new’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:75:14: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:554:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:550:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:550:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:612:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:554:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:554:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:554:9: note: in expansion of macro ‘return_val_if_fail’
#   73|   #define return_val_if_fail(x, v) \
#   74|   	do { if (x) { } else {							\
#   75|-> 	     p11_debug_precond ("p11-kit: '%s' not true at %s\n", #x, __func__); \
#   76|   	     return v; \
#   77|   	} } while (false)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:38: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c: scope_hint: In function ‘register_callback_unlocked’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:75:14: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:187:17: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:235:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:236:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:236:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:239:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:182:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:182:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:187:17: note: in expansion of macro ‘return_val_if_fail’
#   73|   #define return_val_if_fail(x, v) \
#   74|   	do { if (x) { } else {							\
#   75|-> 	     p11_debug_precond ("p11-kit: '%s' not true at %s\n", #x, __func__); \
#   76|   	     return v; \
#   77|   	} } while (false)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:75:14: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(name)’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:846:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:882:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:883:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:883:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:844:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:846:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:846:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:846:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:846:9: note: in expansion of macro ‘return_val_if_fail’
#   73|   #define return_val_if_fail(x, v) \
#   74|   	do { if (x) { } else {							\
#   75|-> 	     p11_debug_precond ("p11-kit: '%s' not true at %s\n", #x, __func__); \
#   76|   	     return v; \
#   77|   	} } while (false)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:41: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c: scope_hint: In function ‘insert_attribute’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:75:14: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(value)’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:882:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:883:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:883:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:844:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
#   73|   #define return_val_if_fail(x, v) \
#   74|   	do { if (x) { } else {							\
#   75|-> 	     p11_debug_precond ("p11-kit: '%s' not true at %s\n", #x, __func__); \
#   76|   	     return v; \
#   77|   	} } while (false)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/token.c:43: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/token.c: scope_hint: In function ‘loader_was_loaded’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:81:14: warning[-Wanalyzer-malloc-leak]: leak of ‘key’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/token.c:125:9: note: in expansion of macro ‘return_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/token.c:448:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/token.c:122:9: note: in expansion of macro ‘return_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/token.c:122:9: note: in expansion of macro ‘return_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/token.c:125:9: note: in expansion of macro ‘return_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/token.c:125:9: note: in expansion of macro ‘return_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/token.c:125:9: note: in expansion of macro ‘return_if_fail’
#   79|   #define return_if_fail(x) \
#   80|   	do { if (x) { } else {						\
#   81|-> 	     p11_debug_precond ("p11-kit: '%s' not true at %s\n", #x, __func__); \
#   82|   	     return; \
#   83|   	} } while (false)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:93:14: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:202:17: note: in expansion of macro ‘return_val_if_reached’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:235:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:236:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:236:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:239:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:182:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:182:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:202:17: note: in expansion of macro ‘return_val_if_reached’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:202:17: note: in expansion of macro ‘return_val_if_reached’
#   91|   #define return_val_if_reached(v) \
#   92|   	do { \
#   93|-> 	     p11_debug_precond ("p11-kit: shouldn't be reached at %s\n", __func__); \
#   94|   	     return v; \
#   95|   	} while (false)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c:43: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c: scope_hint: In function ‘proxy_list_slots’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/pkcs11.h:1711:49: warning[-Wanalyzer-malloc-leak]: leak of ‘new_slots’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:76:21: note: in definition of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c:278:66: note: in expansion of macro ‘CKR_GENERAL_ERROR’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c:483:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c:39: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/library.h:52:44: note: in expansion of macro ‘p11_mutex_lock’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c:485:9: note: in expansion of macro ‘p11_lock’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:74:18: note: in definition of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:74:18: note: in definition of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c:286:25: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c:286:25: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c:288:25: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c:288:25: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/debug.h:76:21: note: in definition of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/proxy.c:278:66: note: in expansion of macro ‘CKR_GENERAL_ERROR’
# 1709|   #define CKR_HOST_MEMORY				(2UL)
# 1710|   #define CKR_SLOT_ID_INVALID			(3UL)
# 1711|-> #define CKR_GENERAL_ERROR			(5UL)
# 1712|   #define CKR_FUNCTION_FAILED			(6UL)
# 1713|   #define CKR_ARGUMENTS_BAD			(7UL)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/readpassphrase.c: scope_hint: In function ‘readpassphrase’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/readpassphrase.c:93:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 2)’
#   91|   	 * generate SIGTTOU, so do it *before* installing the signal handlers.
#   92|   	 */
#   93|-> 	if (input != STDIN_FILENO && tcgetattr(input, &oterm) == 0) {
#   94|   		memcpy(&term, &oterm, sizeof(term));
#   95|   		if (!(flags & RPP_ECHO_ON))

Error: COMPILER_WARNING (CWE-252): [#def10]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/readpassphrase.c: scope_hint: In function ‘readpassphrase’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/readpassphrase.c:128:23: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  128 |                 (void)write(output, prompt, strlen(prompt));
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  126|   
#  127|   	if (!(flags & RPP_STDIN))
#  128|-> 		(void)write(output, prompt, strlen(prompt));
#  129|   	end = buf + bufsiz - 1;
#  130|   	p = buf;

Error: COMPILER_WARNING (CWE-252): [#def11]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/readpassphrase.c:147:23: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  147 |                 (void)write(output, "\n", 1);
#      |                       ^~~~~~~~~~~~~~~~~~~~~~
#  145|   	save_errno = errno;
#  146|   	if (!(term.c_lflag & ECHO))
#  147|-> 		(void)write(output, "\n", 1);
#  148|   
#  149|   	/* Restore old terminal settings and signals. */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-array.c: scope_hint: In function ‘test_remove_and_count’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-array.c:155:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-array.c:42: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:53:9: note: in expansion of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-array.c:154:17: note: in expansion of macro ‘assert’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:53:9: note: in expansion of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-array.c:154:17: note: in expansion of macro ‘assert’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:53:9: note: in expansion of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-array.c:154:17: note: in expansion of macro ‘assert’
#  153|   		value = malloc (sizeof (int));
#  154|   		assert (value != NULL);
#  155|-> 		*value = i;
#  156|   		if (!p11_array_push (array, value))
#  157|   			assert_not_reached ();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c: scope_hint: In function ‘test_take_recursive’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:452:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘template’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:36: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:451:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:451:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:451:9: note: in expansion of macro ‘assert_ptr_not_null’
#  450|   	template = malloc (2 * sizeof (CK_ATTRIBUTE));
#  451|   	assert_ptr_not_null (template);
#  452|-> 	template[0].type = CKA_LOCAL;
#  453|   	template[0].ulValueLen = sizeof (CK_BBOOL);
#  454|   	template[0].pValue = malloc (template[0].ulValueLen);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:456:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*template.pValue’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:451:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:455:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:455:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:455:9: note: in expansion of macro ‘assert_ptr_not_null’
#  454|   	template[0].pValue = malloc (template[0].ulValueLen);
#  455|   	assert_ptr_not_null (template[0].pValue);
#  456|-> 	*(CK_BBOOL *)(template[0].pValue) = CK_TRUE;
#  457|   	template[1].type = CKA_LABEL;
#  458|   	template[1].ulValueLen = 5;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:461:9: warning[-Wanalyzer-null-argument]: use of NULL ‘template[1].pValue’ where non-null expected
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:451:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:455:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:460:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:460:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-attrs.c:460:9: note: in expansion of macro ‘assert_ptr_not_null’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  459|   	template[1].pValue = malloc (template[1].ulValueLen);
#  460|   	assert_ptr_not_null (template[1].pValue);
#  461|-> 	memcpy (template[1].pValue, "label", 5);
#  462|   
#  463|   	attrs = p11_attrs_buildn (NULL, initial, 2);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-lexer.c: scope_hint: In function ‘check_lex_msg’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-lexer.c:74:29: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-lexer.c:237:9: note: in expansion of macro ‘check_lex_failure’
/usr/include/sys/un.h:38: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/compat.h:44: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:35: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-lexer.c:36: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#   72|   		switch (lexer.tok_type) {
#   73|   		case TOK_FIELD:
#   74|-> 			if (strcmp (expected[i].name, lexer.tok.field.name) != 0)
#   75|   				p11_test_fail (file, line, function,
#   76|   				               "field name doesn't match: (%s != %s)",

Error: GCC_ANALYZER_WARNING (CWE-688): [#def17]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-lexer.c:78:29: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-lexer.c:183:9: note: in expansion of macro ‘check_lex_success’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#   76|   				               "field name doesn't match: (%s != %s)",
#   77|   				               expected[i].name, lexer.tok.field.name);
#   78|-> 			if (strcmp (expected[i].value, lexer.tok.field.value) != 0)
#   79|   				p11_test_fail (file, line, function,
#   80|   				               "field value doesn't match: (%s != %s)",

Error: GCC_ANALYZER_WARNING (CWE-688): [#def18]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-lexer.c:84:29: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-lexer.c:237:9: note: in expansion of macro ‘check_lex_failure’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#   82|   			break;
#   83|   		case TOK_SECTION:
#   84|-> 			if (strcmp (expected[i].name, lexer.tok.field.name) != 0)
#   85|   				p11_test_fail (file, line, function,
#   86|   				               "section name doesn't match: (%s != %s)",

Error: GCC_ANALYZER_WARNING (CWE-688): [#def19]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-lexer.c:90:31: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-lexer.c:237:9: note: in expansion of macro ‘check_lex_failure’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#   88|   			break;
#   89|   		case TOK_PEM:
#   90|-> 			len = strlen (expected[i].name);
#   91|   			if (lexer.tok.pem.length < len ||
#   92|   			    strncmp (lexer.tok.pem.begin, expected[i].name, len) != 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-tests.c: scope_hint: In function ‘test_leak.part.0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-tests.c:93:1: warning[-Wanalyzer-malloc-leak]: leak of ‘mem’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-tests.c:36: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:53:9: note: in expansion of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-tests.c:88:17: note: in expansion of macro ‘assert’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:53:9: note: in expansion of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test-tests.c:88:17: note: in expansion of macro ‘assert’
#   91|   	/* cppcheck-suppress memleak */
#   92|   #endif	/* __clang_analyzer__ */
#   93|-> }
#   94|   
#   95|   int

Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.c: scope_hint: In function ‘p11_test_file_write’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.c:485:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(name, "wb")’
#  483|   	}
#  484|   
#  485|-> 	if (fwrite (contents, 1, length, f) != length ||
#  486|   	    fclose (f) != 0) {
#  487|   		printf ("# couldn't write to file: %s: %s\n", name, strerror (errno));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.c:485:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(name, "wb")’
#  483|   	}
#  484|   
#  485|-> 	if (fwrite (contents, 1, length, f) != length ||
#  486|   	    fclose (f) != 0) {
#  487|   		printf ("# couldn't write to file: %s: %s\n", name, strerror (errno));

Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.c: scope_hint: In function ‘p11_test_directory_delete’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.c:546:13: warning[-Wanalyzer-null-argument]: use of NULL ‘directory’ where non-null expected
p11-kit-0.25.5-build/p11-kit-0.25.5/common/compat.h:41: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.c:39: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/compat.h:377: included_from: Included from here.
/usr/include/unistd.h:867:12: note: argument 1 of ‘rmdir’ must be non-null
#  544|   	closedir (dir);
#  545|   
#  546|-> 	if (rmdir (directory) < 0) {
#  547|   		printf ("# Couldn't remove directory: %s\n", directory);
#  548|   		assert_not_reached ();

Error: GCC_ANALYZER_WARNING (CWE-688): [#def24]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-modules.c:36: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-modules.c: scope_hint: In function ‘test_priority’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:94:34: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘name’ where non-null expected
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:99:9: note: in expansion of macro ‘assert_str_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-modules.c:280:17: note: in expansion of macro ‘assert_str_eq’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:99:9: note: in expansion of macro ‘assert_str_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-modules.c:280:17: note: in expansion of macro ‘assert_str_eq’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:99:9: note: in expansion of macro ‘assert_str_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-modules.c:280:17: note: in expansion of macro ‘assert_str_eq’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:99:9: note: in expansion of macro ‘assert_str_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-modules.c:280:17: note: in expansion of macro ‘assert_str_eq’
/usr/include/sys/un.h:38: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/compat.h:44: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:35: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#   92|   	do { const char *__s1 = (a1); \
#   93|   	     const char *__s2 = (a2); \
#   94|-> 	     if (__s1 && __s2 && strcmp (__s1, __s2) cmp 0) ; else \
#   95|   	         p11_test_fail (__FILE__, __LINE__, __FUNCTION__, "assertion failed (%s %s %s): (%s %s %s)", \
#   96|   	                        #a1, #cmp, #a2, __s1 ? __s1 : "(null)", #cmp, __s2 ? __s2 : "(null)"); \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c: scope_hint: In function ‘p11_kit_pin_register_callback’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:252:24: warning[-Wanalyzer-malloc-leak]: leak of ‘cb’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:235:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:236:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:236:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:239:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/pin.c:239:9: note: in expansion of macro ‘return_val_if_fail’
#  250|   	p11_unlock ();
#  251|   
#  252|-> 	return ret ? 0 : -1;
#  253|   }
#  254|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/rpc-transport.c: scope_hint: In function ‘rpc_exec_connect’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/rpc-transport.c:833:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fds[1], 0)’
#  831|   	/* Child */
#  832|   	case 0:
#  833|-> 		if (dup2 (fds[1], STDIN_FILENO) < 0 ||
#  834|   		    dup2 (fds[1], STDOUT_FILENO) < 0) {
#  835|   			errn = errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/rpc-transport.c:833:53: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fds[1], 1)’
#  831|   	/* Child */
#  832|   	case 0:
#  833|-> 		if (dup2 (fds[1], STDIN_FILENO) < 0 ||
#  834|   		    dup2 (fds[1], STDOUT_FILENO) < 0) {
#  835|   			errn = errno;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c: scope_hint: In function ‘test_separate_close_all_sessions’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:188:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:36: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:184:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:184:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:186:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:186:9: note: in expansion of macro ‘assert_ptr_not_null’
#  186|   	assert_ptr_not_null (second);
#  187|   
#  188|-> 	rv = first->C_GetSessionInfo (s1, &info);
#  189|   	assert (rv == CKR_OK);
#  190|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:191:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:68:17: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:186:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:186:9: note: in expansion of macro ‘assert_ptr_not_null’
#  189|   	assert (rv == CKR_OK);
#  190|   
#  191|-> 	rv = second->C_GetSessionInfo (s2, &info);
#  192|   	assert (rv == CKR_OK);
#  193|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c: scope_hint: In function ‘test_fork_and_reinitialize’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:273:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:266:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:266:9: note: in expansion of macro ‘assert_ptr_not_null’
#  271|   	/* The child */
#  272|   	if (pid == 0) {
#  273|-> 		rv = (module->C_Initialize) (NULL);
#  274|   		assert_num_eq (CKR_OK, rv);
#  275|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:288:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:266:9: note: in expansion of macro ‘assert_ptr_not_null’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:266:9: note: in expansion of macro ‘assert_ptr_not_null’
#  286|   
#  287|   	for (i = 0; i < 128; i++) {
#  288|-> 		rv = (module->C_GetInfo) (&info);
#  289|   		assert_num_eq (CKR_OK, rv);
#  290|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:301: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_info’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:57:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#   55|   	module = setup_mock_module (NULL);
#   56|   
#   57|-> 	rv = (module->C_GetInfo) (&info);
#   58|   	assert_num_eq (rv, CKR_OK);
#   59|   	assert_num_eq (MOCK_INFO.cryptokiVersion.major, info.cryptokiVersion.major);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_slot_list’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:81:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#   79|   
#   80|   	/* Normal module has 2 slots, one with token present */
#   81|-> 	rv = (module->C_GetSlotList) (CK_TRUE, NULL, &count);
#   82|   	assert (rv == CKR_OK);
#   83|   	assert_num_eq (MOCK_SLOTS_PRESENT, count);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_slot_info’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:114:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  112|   	module = setup_mock_module (NULL);
#  113|   
#  114|-> 	rv = (module->C_GetSlotInfo) (MOCK_SLOT_ONE_ID, &info);
#  115|   	assert (rv == CKR_OK);
#  116|   	string = p11_kit_space_strdup (info.slotDescription, sizeof (info.slotDescription));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_token_info’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:148:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  146|   	module = setup_mock_module (NULL);
#  147|   
#  148|-> 	rv = (module->C_GetTokenInfo) (MOCK_SLOT_ONE_ID, &info);
#  149|   	assert (rv == CKR_OK);
#  150|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_mechanism_list’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:199:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  197|   	module = setup_mock_module (NULL);
#  198|   
#  199|-> 	rv = (module->C_GetMechanismList) (MOCK_SLOT_ONE_ID, NULL, &count);
#  200|   	assert (rv == CKR_OK);
#  201|   	assert_num_eq (2, count);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_mechanism_info’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:226:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  224|   	module = setup_mock_module (NULL);
#  225|   
#  226|-> 	rv = (module->C_GetMechanismInfo) (MOCK_SLOT_ONE_ID, CKM_MOCK_CAPITALIZE, &info);
#  227|   	assert_num_eq (rv, CKR_OK);
#  228|   	assert_num_eq (512, info.ulMinKeySize);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_init_token’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:256:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  254|   	module = setup_mock_module (NULL);
#  255|   
#  256|-> 	rv = (module->C_InitToken) (MOCK_SLOT_ONE_ID, (CK_UTF8CHAR_PTR)"TEST PIN", 8, (CK_UTF8CHAR_PTR)"TEST LABEL                      ");
#  257|   	assert (rv == CKR_OK);
#  258|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_wait_for_slot_event’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:282:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  280|   	module = setup_mock_module (NULL);
#  281|   
#  282|-> 	rv = (module->C_WaitForSlotEvent) (0, &slot, NULL);
#  283|   	assert (rv == CKR_OK);
#  284|   	assert_num_eq (slot, MOCK_SLOT_TWO_ID);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_open_close_session’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:301:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  299|   	module = setup_mock_module (NULL);
#  300|   
#  301|-> 	rv = (module->C_OpenSession) (MOCK_SLOT_TWO_ID, CKF_SERIAL_SESSION, NULL, NULL, &session);
#  302|   	assert (rv == CKR_TOKEN_NOT_PRESENT);
#  303|   	rv = (module->C_OpenSession) (0, CKF_SERIAL_SESSION, NULL, NULL, &session);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_close_all_sessions’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:328:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  326|   	module = setup_mock_module (NULL);
#  327|   
#  328|-> 	rv = (module->C_OpenSession) (MOCK_SLOT_ONE_ID, CKF_SERIAL_SESSION, NULL, NULL, &session);
#  329|   	assert (rv == CKR_OK);
#  330|   	assert (session != 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_function_status’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:350:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  348|   	module = setup_mock_module (&session);
#  349|   
#  350|-> 	rv = (module->C_GetFunctionStatus) (session);
#  351|   	assert (rv == CKR_FUNCTION_NOT_PARALLEL);
#  352|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_cancel_function’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:365:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  363|   	module = setup_mock_module (&session);
#  364|   
#  365|-> 	rv = (module->C_CancelFunction) (session);
#  366|   	assert (rv == CKR_FUNCTION_NOT_PARALLEL);
#  367|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_session_info’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:381:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  379|   	module = setup_mock_module (NULL);
#  380|   
#  381|-> 	rv = (module->C_GetSessionInfo) (0, &info);
#  382|   	assert (rv == CKR_SESSION_HANDLE_INVALID);
#  383|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_init_pin’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:418:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  416|   	module = setup_mock_module (&session);
#  417|   
#  418|-> 	rv = (module->C_InitPIN) (0, (CK_UTF8CHAR_PTR)"TEST PIN", 8);
#  419|   	assert (rv == CKR_SESSION_HANDLE_INVALID);
#  420|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_set_pin’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:439:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  437|   	module = setup_mock_module (&session);
#  438|   
#  439|-> 	rv = (module->C_SetPIN) (0, (CK_UTF8CHAR_PTR)"booo", 4, (CK_UTF8CHAR_PTR)"TEST PIN", 8);
#  440|   	assert_num_eq (rv, CKR_SESSION_HANDLE_INVALID);
#  441|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_operation_state’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:463:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  461|   
#  462|   	state_len = sizeof (state);
#  463|-> 	rv = (module->C_GetOperationState) (0, state, &state_len);
#  464|   	assert (rv == CKR_SESSION_HANDLE_INVALID);
#  465|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_login_logout’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:488:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  486|   	module = setup_mock_module (&session);
#  487|   
#  488|-> 	rv = (module->C_Login) (0, CKU_USER, (CK_UTF8CHAR_PTR)"booo", 4);
#  489|   	assert_num_eq (rv, CKR_SESSION_HANDLE_INVALID);
#  490|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_attribute_value’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:528:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  526|   	attrs[2].ulValueLen = 0;
#  527|   
#  528|-> 	rv = (module->C_GetAttributeValue) (session, MOCK_PRIVATE_KEY_CAPITALIZE, attrs, 3);
#  529|   	assert (rv == CKR_USER_NOT_LOGGED_IN);
#  530|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_set_attribute_value’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:587:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  585|   	attrs[1].ulValueLen = sizeof (bits);
#  586|   
#  587|-> 	rv = (module->C_SetAttributeValue) (0, MOCK_PRIVATE_KEY_CAPITALIZE, attrs, 2);
#  588|   	assert_num_eq (rv, CKR_SESSION_HANDLE_INVALID);
#  589|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_wrap_template’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:630:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  628|   	module = setup_mock_module (&session);
#  629|   
#  630|-> 	rv = (module->C_GetAttributeValue) (session, MOCK_PUBLIC_KEY_PREFIX, attrs, n_attrs);
#  631|   	assert (rv == CKR_OK);
#  632|   	assert_num_eq (attrs[0].type, CKA_WRAP_TEMPLATE);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_set_wrap_template’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:689:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  687|   	module = setup_mock_module (&session);
#  688|   
#  689|-> 	rv = (module->C_SetAttributeValue) (session, MOCK_PUBLIC_KEY_PREFIX, attrs, n_attrs);
#  690|   	assert (rv == CKR_OK);
#  691|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_create_object’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:761:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  759|   	attrs[1].ulValueLen = sizeof (bits);
#  760|   
#  761|-> 	rv = (module->C_CreateObject) (0, attrs, 2, &object);
#  762|   	assert (rv == CKR_SESSION_HANDLE_INVALID);
#  763|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_create_object_private’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:808:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  806|   	attrs[2].ulValueLen = sizeof (true_value);
#  807|   
#  808|-> 	rv = (module->C_CreateObject) (0, attrs, 3, &object);
#  809|   	assert_num_eq (rv, CKR_SESSION_HANDLE_INVALID);
#  810|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_copy_object’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:855:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  853|   	attrs[0].ulValueLen = sizeof (bits);
#  854|   
#  855|-> 	rv = (module->C_CopyObject) (session, 1333, attrs, 1, &object);
#  856|   	assert (rv == CKR_OBJECT_HANDLE_INVALID);
#  857|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_copy_object_private’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:895:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  893|   	attrs[0].ulValueLen = sizeof (bits);
#  894|   
#  895|-> 	rv = (module->C_CopyObject) (session, 1333, attrs, 1, &object);
#  896|   	assert_num_eq (rv, CKR_OBJECT_HANDLE_INVALID);
#  897|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_destroy_object’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:937:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  935|   	attrs[0].ulValueLen = sizeof (label);
#  936|   
#  937|-> 	rv = (module->C_GetAttributeValue) (session, MOCK_PUBLIC_KEY_CAPITALIZE, attrs, 1);
#  938|   	assert (rv == CKR_OK);
#  939|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_get_object_size’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:962:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  960|   	module = setup_mock_module (&session);
#  961|   
#  962|-> 	rv = (module->C_GetObjectSize) (session, 1333, &size);
#  963|   	assert (rv == CKR_OBJECT_HANDLE_INVALID);
#  964|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_find_objects’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:988:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
#  986|   	module = setup_mock_module (&session);
#  987|   
#  988|-> 	rv = (module->C_FindObjectsInit) (0, &attr, 1);
#  989|   	assert (rv == CKR_SESSION_HANDLE_INVALID);
#  990|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_encrypt’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1045:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1043|   	module = setup_mock_module (&session);
# 1044|   
# 1045|-> 	rv = (module->C_EncryptInit) (0, &mech, MOCK_PUBLIC_KEY_CAPITALIZE);
# 1046|   	assert_num_eq (rv, CKR_SESSION_HANDLE_INVALID);
# 1047|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_decrypt’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1128:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1126|   	module = setup_mock_module (&session);
# 1127|   
# 1128|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 1129|   	assert_num_eq (rv, CKR_OK);
# 1130|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_digest’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1215:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1213|   	module = setup_mock_module (&session);
# 1214|   
# 1215|-> 	rv = (module->C_DigestInit) (0, &mech);
# 1216|   	assert_num_eq (rv, CKR_SESSION_HANDLE_INVALID);
# 1217|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_sign’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1300:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1298|   	module = setup_mock_module (&session);
# 1299|   
# 1300|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 1301|   	assert_num_eq (rv, CKR_OK);
# 1302|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_sign_recover’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1390:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1388|   	module = setup_mock_module (&session);
# 1389|   
# 1390|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 1391|   	assert_num_eq (rv, CKR_OK);
# 1392|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_verify’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1455:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1453|   	module = setup_mock_module (&session);
# 1454|   
# 1455|-> 	rv = (module->C_VerifyInit) (0, &mech, MOCK_PUBLIC_KEY_PREFIX);
# 1456|   	assert_num_eq (rv, CKR_SESSION_HANDLE_INVALID);
# 1457|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_verify_recover’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1515:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1513|   	module = setup_mock_module (&session);
# 1514|   
# 1515|-> 	rv = (module->C_VerifyRecoverInit) (0, &mech, MOCK_PUBLIC_KEY_PREFIX);
# 1516|   	assert_num_eq (rv, CKR_SESSION_HANDLE_INVALID);
# 1517|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_digest_encrypt’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1571:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1569|   	module = setup_mock_module (&session);
# 1570|   
# 1571|-> 	rv = (module->C_EncryptInit) (session, &mech, MOCK_PUBLIC_KEY_CAPITALIZE);
# 1572|   	assert_num_eq (rv, CKR_OK);
# 1573|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_decrypt_digest’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1615:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1613|   	module = setup_mock_module (&session);
# 1614|   
# 1615|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 1616|   	assert_num_eq (rv, CKR_OK);
# 1617|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_sign_encrypt’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1662:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1660|   	module = setup_mock_module (&session);
# 1661|   
# 1662|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 1663|   	assert_num_eq (rv, CKR_OK);
# 1664|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_decrypt_verify’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1712:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1710|   	module = setup_mock_module (&session);
# 1711|   
# 1712|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 1713|   	assert_num_eq (rv, CKR_OK);
# 1714|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_generate_key’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1767:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1765|   	attrs[1].ulValueLen = sizeof (bits);
# 1766|   
# 1767|-> 	rv = (module->C_GenerateKey) (session, &mech, attrs, 2, &object);
# 1768|   	assert (rv == CKR_MECHANISM_PARAM_INVALID);
# 1769|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_generate_key_pair’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1833:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1831|   	priv_attrs[1].ulValueLen = sizeof (priv_bits);
# 1832|   
# 1833|-> 	rv = (module->C_GenerateKeyPair) (0, &mech, pub_attrs, 2, priv_attrs, 2,
# 1834|   	                                  &pub_object, &priv_object);
# 1835|   	assert (rv == CKR_SESSION_HANDLE_INVALID);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_wrap_key’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1892:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1890|   
# 1891|   	length = sizeof (data);
# 1892|-> 	rv = (module->C_WrapKey) (session, &mech, MOCK_PUBLIC_KEY_PREFIX, MOCK_PUBLIC_KEY_PREFIX, data, &length);
# 1893|   	assert_num_eq (rv, CKR_MECHANISM_PARAM_INVALID);
# 1894|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_unwrap_key’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:1945:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1943|   	attrs[1].ulValueLen = sizeof (bits);
# 1944|   
# 1945|-> 	rv = (module->C_UnwrapKey) (session, &mech, MOCK_PUBLIC_KEY_PREFIX,
# 1946|   	                            (CK_BYTE_PTR)"wheee", 5, attrs, 2, &object);
# 1947|   	assert (rv == CKR_MECHANISM_PARAM_INVALID);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_derive_key’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:2000:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 1998|   	attrs[1].ulValueLen = sizeof (bits);
# 1999|   
# 2000|-> 	rv = (module->C_DeriveKey) (session, &mech, MOCK_PUBLIC_KEY_PREFIX,
# 2001|   	                                attrs, 2, &object);
# 2002|   	assert (rv == CKR_MECHANISM_PARAM_INVALID);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_random’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:2040:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 2038|   	module = setup_mock_module (&session);
# 2039|   
# 2040|-> 	rv = (module->C_SeedRandom) (0, (CK_BYTE_PTR)"seed", 4);
# 2041|   	assert (rv == CKR_SESSION_HANDLE_INVALID);
# 2042|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_login_user’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:2067:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 2065|   
# 2066|   	/* missing session */
# 2067|-> 	rv = (module->C_LoginUser) (0, CKU_USER, (CK_UTF8CHAR_PTR)"booo", 4, (CK_UTF8CHAR_PTR)"yeah", 4);
# 2068|   	assert_num_eq (rv, CKR_SESSION_HANDLE_INVALID);
# 2069|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_session_cancel’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:2104:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 2102|   	module = (CK_FUNCTION_LIST_3_0_PTR)setup_mock_module (&session);
# 2103|   
# 2104|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 2105|   	assert (rv == CKR_OK);
# 2106|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_message_encrypt’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:2151:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 2149|   	module = (CK_FUNCTION_LIST_3_0_PTR)setup_mock_module (&session);
# 2150|   
# 2151|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 2152|   	assert_num_eq (rv, CKR_OK);
# 2153|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_message_decrypt’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:2282:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 2280|   	module = (CK_FUNCTION_LIST_3_0_PTR)setup_mock_module (&session);
# 2281|   
# 2282|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 2283|   	assert_num_eq (rv, CKR_OK);
# 2284|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_message_sign’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:2410:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 2408|   	module = (CK_FUNCTION_LIST_3_0_PTR)setup_mock_module (&session);
# 2409|   
# 2410|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 2411|   	assert_num_eq (rv, CKR_OK);
# 2412|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_message_verify’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:2553:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 2551|   	module = (CK_FUNCTION_LIST_3_0_PTR)setup_mock_module (&session);
# 2552|   
# 2553|-> 	rv = (module->C_Login) (session, CKU_USER, (CK_BYTE_PTR)"booo", 4);
# 2554|   	assert_num_eq (rv, CKR_OK);
# 2555|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c: scope_hint: In function ‘test_pkcs11_3_not_supported’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-mock.c:2669:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:108:9: note: in expansion of macro ‘assert_ptr_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-managed.c:71:17: note: in expansion of macro ‘assert_ptr_eq’
# 2667|   
# 2668|   	/* not part of 2.x API */
# 2669|-> 	rv = (module->C_LoginUser) (session, CKU_USER, (CK_UTF8CHAR_PTR)"booo", 4, (CK_UTF8CHAR_PTR)"yeah", 4);
# 2670|   	assert_num_eq (rv, CKR_FUNCTION_NOT_SUPPORTED);
# 2671|   

Error: GCC_ANALYZER_WARNING: [#def84]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-server.c: scope_hint: In function ‘setup_server’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-server.c:130:21: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-server.c:36: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:53:9: note: in expansion of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-server.c:125:9: note: in expansion of macro ‘assert’
#  128|   	if (test.pid == 0) {
#  129|   		close (STDOUT_FILENO);
#  130|-> 		if (dup2 (fds[0], STDOUT_FILENO) == -1)
#  131|   			assert_not_reached ();
#  132|   		if (execv (BUILDDIR "/p11-kit/p11-kit-server-testable" EXEEXT,

Error: GCC_ANALYZER_WARNING: [#def85]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-transport3.c:45: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-transport-base.c: scope_hint: In function ‘launch_server’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-transport-base.c:174:14: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘fd’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-transport-base.c:37: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-transport-base.c:169:9: note: in expansion of macro ‘assert_num_cmp’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-transport-base.c:169:9: note: in expansion of macro ‘assert_num_cmp’
#  172|   	assert_num_cmp (rc, !=, -1);
#  173|   
#  174|-> 	rc = listen (fd, 1024);
#  175|   	assert_num_cmp (rc, !=, -1);
#  176|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-transport-base.c:201:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/test-transport-base.c:175:9: note: in expansion of macro ‘assert_num_cmp’
/usr/include/sys/select.h:30: included_from: Included from here.
/usr/include/sys/types.h:179: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/compat.h:42: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:35: included_from: Included from here.
#  199|   	rc = execv (BUILDDIR "/p11-kit/p11-kit-remote" EXEEXT, argv);
#  200|   	assert_num_cmp (rc, !=, -1);
#  201|-> }
#  202|   
#  203|   static void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:848:30: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(name)’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:882:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:883:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:883:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:844:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:846:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:846:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:855:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:855:9: note: in expansion of macro ‘return_val_if_fail’
#  846|   	return_val_if_fail (value != NULL, false);
#  847|   
#  848|-> 	for (i = 0; i < attrs->num; i++) {
#  849|   		attr = attrs->elem[i];
#  850|   		if (strcmp (attr->name, (char *)name) > 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:848:30: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(value)’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:882:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:883:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:883:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:844:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:845:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:846:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:846:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:846:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:855:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:855:9: note: in expansion of macro ‘return_val_if_fail’
#  846|   	return_val_if_fail (value != NULL, false);
#  847|   
#  848|-> 	for (i = 0; i < attrs->num; i++) {
#  849|   		attr = attrs->elem[i];
#  850|   		if (strcmp (attr->name, (char *)name) > 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def89]
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c: scope_hint: In function ‘p11_kit_uri_set_vendor_query’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:899:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘attr’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:882:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:883:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/p11-kit/uri.c:883:9: note: in expansion of macro ‘return_val_if_fail’
#  897|   		p11_array_remove (uri->qattrs, i);
#  898|   	else {
#  899|-> 		free (attr->value);
#  900|   		attr->value = strdup (value);
#  901|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-cer.c:247: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-cer.c: scope_hint: In function ‘p11_extract_x509_directory’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-cer.c:101:43: warning[-Wanalyzer-malloc-leak]: leak of ‘p11_save_open_directory(destination, *ex.flags)’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-cer.c:248: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-cer.c:43: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:345:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:389:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:389:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-cer.c:246: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/enumerate.c:752:9: note: in expansion of macro ‘return_val_if_fail’
#   99|   		return false;
#  100|   
#  101|-> 	while ((rv = p11_kit_iter_next (ex->iter)) == CKR_OK) {
#  102|   		filename = p11_enumerate_filename (ex);
#  103|   		return_val_if_fail (filename != NULL, -1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-bundle.c:275: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-openssl.c: scope_hint: In function ‘p11_extract_openssl_directory’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-openssl.c:657:43: warning[-Wanalyzer-malloc-leak]: leak of ‘p11_save_open_directory(destination, *ex.flags)’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-bundle.c:276: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-bundle.c:43: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:345:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:389:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:389:9: note: in expansion of macro ‘return_val_if_fail’
#  655|   	p11_buffer_init (&output, 0);
#  656|   
#  657|-> 	while ((rv = p11_kit_iter_next (ex->iter)) == CKR_OK) {
#  658|   		if (!p11_buffer_reset (&buf, 1024))
#  659|   			return_val_if_reached (false);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-openssl.c:658:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:345:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:389:9: note: in expansion of macro ‘return_val_if_fail’
#  656|   
#  657|   	while ((rv = p11_kit_iter_next (ex->iter)) == CKR_OK) {
#  658|-> 		if (!p11_buffer_reset (&buf, 1024))
#  659|   			return_val_if_reached (false);
#  660|   		if (!p11_buffer_reset (&output, 2048))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-openssl.c:660:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:345:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:389:9: note: in expansion of macro ‘return_val_if_fail’
#  658|   		if (!p11_buffer_reset (&buf, 1024))
#  659|   			return_val_if_reached (false);
#  660|-> 		if (!p11_buffer_reset (&output, 2048))
#  661|   			return_val_if_reached (false);
#  662|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-openssl.c:664:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:345:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:389:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-openssl.c:299:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/extract-openssl.c:299:9: note: in expansion of macro ‘return_val_if_fail’
#  662|   
#  663|   		if (prepare_pem_contents (ex, &buf)) {
#  664|-> 			if (!p11_pem_write (buf.data, buf.len, "TRUSTED CERTIFICATE", &output))
#  665|   				return_val_if_reached (false);
#  666|   

Error: COMPILER_WARNING (CWE-563): [#def95]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/list.c: scope_hint: In function ‘list_iterate’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/list.c:96:26: warning[-Wunused-but-set-variable]: variable ‘object’ set but not used
#   96 |         CK_OBJECT_HANDLE object;
#      |                          ^~~~~~
#   94|   {
#   95|   	unsigned char *bytes;
#   96|-> 	CK_OBJECT_HANDLE object;
#   97|   	CK_ATTRIBUTE *attr;
#   98|   	CK_ULONG klass;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/module.c: scope_hint: In function ‘sys_C_FindObjectsInit’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/module.c:1251:16: warning[-Wanalyzer-malloc-leak]: leak of ‘find’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/module.c:43: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/module.c:1220:25: note: in expansion of macro ‘warn_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/module.c:1220:25: note: in expansion of macro ‘warn_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/module.c:1230:33: note: in expansion of macro ‘warn_if_fail’
# 1249|   	p11_debug ("out: 0x%lx", rv);
# 1250|   
# 1251|-> 	return rv;
# 1252|   }
# 1253|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c: scope_hint: In function ‘p11_save_write_and_finish’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:131:20: warning[-Wanalyzer-malloc-leak]: leak of ‘p11_save_open_file(destination, 0, *ex.flags)’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:112:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:130:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:130:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:257:17: note: in expansion of macro ‘return_val_if_reached’
#  129|   	file = calloc (1, sizeof (p11_save_file));
#  130|   	return_val_if_fail (file != NULL, NULL);
#  131|-> 	file->temp = temp;
#  132|   	file->bare = strdup (path);
#  133|   	if (file->bare == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c: scope_hint: In function ‘p11_save_open_file_in’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:131:20: warning[-Wanalyzer-malloc-leak]: leak of ‘p11_save_open_file(path, 0, *dir.flags)’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:38: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:493:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:494:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:494:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:43: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:460:17: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:497:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:112:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:130:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:130:9: note: in expansion of macro ‘return_val_if_fail’
#  129|   	file = calloc (1, sizeof (p11_save_file));
#  130|   	return_val_if_fail (file != NULL, NULL);
#  131|-> 	file->temp = temp;
#  132|   	file->bare = strdup (path);
#  133|   	if (file->bare == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:505:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:493:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:494:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:494:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:460:17: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:497:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:112:9: note: in expansion of macro ‘return_val_if_fail’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/save.c:130:9: note: in expansion of macro ‘return_val_if_fail’
#  503|   
#  504|   	if (file) {
#  505|-> 		if (!p11_dict_set (dir->cache, name, name))
#  506|   			return_val_if_reached (NULL);
#  507|   		name = NULL;

Error: GCC_ANALYZER_WARNING (CWE-686): [#def100]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-index.c: scope_hint: In function ‘handles_are’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-index.c:415:24: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘CK_OBJECT_HANDLE’ {aka ‘long unsigned int’} but received ‘int’ for variadic argument 1 of ‘va’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-index.c:36: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:55:18: note: in definition of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-index.c:500:9: note: in expansion of macro ‘assert’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:55:18: note: in definition of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-index.c:500:9: note: in expansion of macro ‘assert’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:53:9: note: in expansion of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-index.c:500:9: note: in expansion of macro ‘assert’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:53:9: note: in expansion of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-index.c:500:9: note: in expansion of macro ‘assert’
p11-kit-0.25.5-build/p11-kit-0.25.5/common/test.h:55:18: note: in definition of macro ‘assert_true’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-index.c:511:9: note: in expansion of macro ‘assert’
#  413|   
#  414|   	for (count = 0; matched; count++) {
#  415|-> 		handle = va_arg (va, CK_OBJECT_HANDLE);
#  416|   		if (handle == 0)
#  417|   			break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def101]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-module.c: scope_hint: In function ‘setup_unreadable’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-module.c:202:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(p11_path_build(p11_path_build(p11_test_directory("test-module"), "anchors", 0), "unreadable", 0), "w")’ where non-null expected
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-module.c:53: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-module.c:42: included_from: Included from here.
/usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null
#  200|   	test.unreadable = p11_path_build (anchors, "unreadable", NULL);
#  201|   	f = fopen (test.unreadable, "w");
#  202|-> 	fwrite ("foo", 3, 1, f);
#  203|   	fclose (f);
#  204|   	chmod (test.unreadable, 0);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def102]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-module.c:209:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen("/builddir/build/BUILD/p11-kit-0.25.5-build/p11-kit-0.25.5/trust/fixtures/thawte.pem", "r")’ where non-null expected
/usr/include/stdio.h:852:12: note: argument 1 of ‘feof’ must be non-null
#  207|   	ff = fopen (p, "w");
#  208|   	f = fopen (SRCDIR "/trust/fixtures/thawte.pem", "r");
#  209|-> 	while (!feof (f)) {
#  210|   		size_t size;
#  211|   		size = fread (buffer, 1, sizeof (buffer), f);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def103]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-module.c:215:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(p11_path_build(p11_path_build(p11_test_directory("test-module"), "anchors", 0), "thawte", 0), "w")’ where non-null expected
/usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null
#  213|   			assert_fail ("fread()",
#  214|   				     SRCDIR "/trust/fixtures/thawte.pem");
#  215|-> 		fwrite (buffer, 1, size, ff);
#  216|   		if (ferror (ff))
#  217|   			assert_fail ("write()", p);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def104]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-module.c:220:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(p11_path_build(p11_path_build(p11_test_directory("test-module"), "anchors", 0), "thawte", 0), "w")’ where non-null expected
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null
#  218|   	}
#  219|   	free (p);
#  220|-> 	fclose (ff);
#  221|   	fclose (f);
#  222|   	free (anchors);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-persist.c: scope_hint: In function ‘check_read_msg’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-persist.c:114:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘expected’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-persist.c:566:9: note: in expansion of macro ‘check_read_failure’
#  112|   		if (expected == NULL)
#  113|   			p11_test_fail (file, line, function, "decoding should have failed");
#  114|-> 		for (i = 0; i < expected->num; i++) {
#  115|   			if (i >= objects->num)
#  116|   				p11_test_fail (file, line, function, "too few objects read");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-trust.c: scope_hint: In function ‘read_file’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-trust.c:189:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
#  187|   		p11_test_fail (file, line, function, "Couldn't stat file: %s", filename);
#  188|   
#  189|-> 	*len = sb.st_size;
#  190|   	data = malloc (*len ? *len : 1);
#  191|   	assert (data != NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-trust.c:189:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
#  187|   		p11_test_fail (file, line, function, "Couldn't stat file: %s", filename);
#  188|   
#  189|-> 	*len = sb.st_size;
#  190|   	data = malloc (*len ? *len : 1);
#  191|   	assert (data != NULL);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def108]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-trust.c:194:13: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(filename, "rb")’ where non-null expected
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-trust.c:47: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-trust.c:53: included_from: Included from here.
/usr/include/stdio.h:728:15: note: argument 4 of ‘fread’ must be non-null
#  192|   
#  193|   	/* And read in one block */
#  194|-> 	if (fread (data, 1, *len, f) != *len)
#  195|   		p11_test_fail (file, line, function, "Couldn't read file: %s", filename);
#  196|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def109]
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-trust.c: scope_hint: In function ‘test_check_directory_msg’
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-trust.c:314:22: warning[-Wanalyzer-null-argument]: use of NULL ‘opendir(directory)’ where non-null expected
/usr/include/features.h:511: included_from: Included from here.
/usr/include/fcntl.h:25: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/compat.h:40: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/buffer.h:39: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/common/attrs.h:39: included_from: Included from here.
p11-kit-0.25.5-build/p11-kit-0.25.5/trust/test-trust.c:37: included_from: Included from here.
/usr/include/dirent.h:167:23: note: argument 1 of ‘readdir’ must be non-null
#  312|   		p11_test_fail (file ,line, function, "Couldn't open directory: %s", directory);
#  313|   
#  314|-> 	while ((dp = readdir (dir)) != NULL) {
#  315|   		if (strcmp (dp->d_name, ".") == 0 ||
#  316|   		    strcmp (dp->d_name, "..") == 0)

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-82.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namep11-kit-0.25.5-4.fc42
store-results-to/tmp/tmpw7hcrkdu/p11-kit-0.25.5-4.fc42.tar.xz
time-created2024-11-13 02:14:05
time-finished2024-11-13 02:19:37
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpw7hcrkdu/p11-kit-0.25.5-4.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpw7hcrkdu/p11-kit-0.25.5-4.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9