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’
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’
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’
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’
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’
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’
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’
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’
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)’
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’
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’
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’
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’
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’
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
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
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
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
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
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’
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")’
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")’
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
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
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’
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)’
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)’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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.
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’
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’
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’
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’
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’
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’
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’
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’
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
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’
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’
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’
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’
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’
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
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
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
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
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’
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")’
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")’
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
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
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-82.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | p11-kit-0.25.5-4.fc42 |
store-results-to | /tmp/tmpw7hcrkdu/p11-kit-0.25.5-4.fc42.tar.xz |
time-created | 2024-11-13 02:14:05 |
time-finished | 2024-11-13 02:19:37 |
tool | csmock |
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-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |