libsecret-0.21.4-2.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libsecret-0.21.4-build/libsecret-0.21.4/egg/egg-buffer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libsecret-0.21.4-build/libsecret-0.21.4/egg/egg-dh-gnutls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
libsecret-0.21.4-build/libsecret-0.21.4/egg/egg-dh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
libsecret-0.21.4-build/libsecret-0.21.4/egg/egg-hex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libsecret-0.21.4-build/libsecret-0.21.4/egg/egg-hkdf-gnutls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
libsecret-0.21.4-build/libsecret-0.21.4/egg/egg-secure-memory.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
libsecret-0.21.4-build/libsecret-0.21.4/egg/egg-secure-memory.c: scope_hint: In function ‘egg_secure_strndup_full’
libsecret-0.21.4-build/libsecret-0.21.4/egg/egg-secure-memory.c:1359:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1357|   	len = length + 1;
# 1358|   	res = (char *)egg_secure_alloc_full (tag, len, options);
# 1359|-> 	memcpy (res, str, len);
# 1360|   	res[length] = '\0';
# 1361|   	return res;

Error: CPPCHECK_WARNING: [#def8]
libsecret-0.21.4-build/libsecret-0.21.4/egg/test-dh.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libsecret-0.21.4-build/libsecret-0.21.4/egg/test-hkdf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
libsecret-0.21.4-build/libsecret-0.21.4/egg/test-secmem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-attributes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-attributes.c: scope_hint: In function ‘_secret_attributes_validate’
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-attributes.c:318:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
#  316|   	if (!secret_attributes_validate (schema, attributes, &error)) {
#  317|   		// if matching is false, an empty table is fine
#  318|-> 		if ((!matching) && (error->code == SECRET_ERROR_EMPTY_TABLE)) {
#  319|   			g_error_free (error);
#  320|   			return TRUE;

Error: CPPCHECK_WARNING: [#def13]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-backend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-collection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-file-backend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-file-collection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-item.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-methods.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-password.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-paths.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-prompt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def22]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-prompt.c:447:2: warning[deadcode.DeadStores]: Value stored to 'async_cancellable' is never read
#  445|   
#  446|   	task = g_task_new (self, cancellable, callback, user_data);
#  447|-> 	async_cancellable = g_task_get_cancellable (task);
#  448|   	g_task_set_source_tag (task, secret_prompt_perform);
#  449|   	closure = g_new0 (PerformClosure, 1);

Error: CPPCHECK_WARNING: [#def23]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-schema.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret-value.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def27]
libsecret-0.21.4-build/libsecret-0.21.4/redhat-linux-build/libsecret/test-vala-unstable.p/test-vala-unstable.c:15: included_from: Included from here.
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret.h:40:2: warning[-Wcpp]: #warning "Some parts of the libsecret API are unstable. Define SECRET_API_SUBJECT_TO_CHANGE to acknowledge"
#   40 | #warning "Some parts of the libsecret API are unstable. Define SECRET_API_SUBJECT_TO_CHANGE to acknowledge"
#      |  ^~~~~~~
#   38|   
#   39|   #ifndef SECRET_API_SUBJECT_TO_CHANGE
#   40|-> #warning "Some parts of the libsecret API are unstable. Define SECRET_API_SUBJECT_TO_CHANGE to acknowledge"
#   41|   #endif
#   42|   

Error: CPPCHECK_WARNING: [#def28]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-collection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-file-collection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-item.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def31]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-methods.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-password.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-paths.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-843): [#def35]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-lang.vala: scope_hint: In function ‘_vala_main’
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-lang.vala:183:59: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_test_add_data_func’ from incompatible pointer type
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret.h:18: included_from: Included from here.
libsecret-0.21.4-build/libsecret-0.21.4/redhat-linux-build/libsecret/test-vala-lang.p/test-vala-lang.c:15: included_from: Included from here.
/usr/include/glib-2.0/glib/gtestutils.h:378:58: note: expected ‘GTestDataFunc’ {aka ‘void (*)(const void *)’} but argument is of type ‘void (*)(void *)’
#  181|     }
#  182|   
#  183|->   GLib.Test.add_data_func ("/vala/attributes/validate", test_attributes_validate);
#  184|     GLib.Test.add_data_func ("/vala/lookup/sync", test_lookup_sync);
#  185|     GLib.Test.add_data_func ("/vala/lookup/async", test_lookup_async);

Error: COMPILER_WARNING (CWE-843): [#def36]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-lang.vala:184:51: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_test_add_data_func’ from incompatible pointer type
/usr/include/glib-2.0/glib/gtestutils.h:378:58: note: expected ‘GTestDataFunc’ {aka ‘void (*)(const void *)’} but argument is of type ‘void (*)(void *)’
#  182|   
#  183|     GLib.Test.add_data_func ("/vala/attributes/validate", test_attributes_validate);
#  184|->   GLib.Test.add_data_func ("/vala/lookup/sync", test_lookup_sync);
#  185|     GLib.Test.add_data_func ("/vala/lookup/async", test_lookup_async);
#  186|     GLib.Test.add_data_func ("/vala/lookup/no-name", test_lookup_no_name);

Error: COMPILER_WARNING (CWE-843): [#def37]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-lang.vala:185:52: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_test_add_data_func’ from incompatible pointer type
/usr/include/glib-2.0/glib/gtestutils.h:378:58: note: expected ‘GTestDataFunc’ {aka ‘void (*)(const void *)’} but argument is of type ‘void (*)(void *)’
#  183|     GLib.Test.add_data_func ("/vala/attributes/validate", test_attributes_validate);
#  184|     GLib.Test.add_data_func ("/vala/lookup/sync", test_lookup_sync);
#  185|->   GLib.Test.add_data_func ("/vala/lookup/async", test_lookup_async);
#  186|     GLib.Test.add_data_func ("/vala/lookup/no-name", test_lookup_no_name);
#  187|     GLib.Test.add_data_func ("/vala/store/sync", test_store_sync);

Error: COMPILER_WARNING (CWE-843): [#def38]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-lang.vala:186:54: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_test_add_data_func’ from incompatible pointer type
/usr/include/glib-2.0/glib/gtestutils.h:378:58: note: expected ‘GTestDataFunc’ {aka ‘void (*)(const void *)’} but argument is of type ‘void (*)(void *)’
#  184|     GLib.Test.add_data_func ("/vala/lookup/sync", test_lookup_sync);
#  185|     GLib.Test.add_data_func ("/vala/lookup/async", test_lookup_async);
#  186|->   GLib.Test.add_data_func ("/vala/lookup/no-name", test_lookup_no_name);
#  187|     GLib.Test.add_data_func ("/vala/store/sync", test_store_sync);
#  188|     GLib.Test.add_data_func ("/vala/store/async", test_store_async);

Error: COMPILER_WARNING (CWE-843): [#def39]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-lang.vala:187:50: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_test_add_data_func’ from incompatible pointer type
/usr/include/glib-2.0/glib/gtestutils.h:378:58: note: expected ‘GTestDataFunc’ {aka ‘void (*)(const void *)’} but argument is of type ‘void (*)(void *)’
#  185|     GLib.Test.add_data_func ("/vala/lookup/async", test_lookup_async);
#  186|     GLib.Test.add_data_func ("/vala/lookup/no-name", test_lookup_no_name);
#  187|->   GLib.Test.add_data_func ("/vala/store/sync", test_store_sync);
#  188|     GLib.Test.add_data_func ("/vala/store/async", test_store_async);
#  189|     GLib.Test.add_data_func ("/vala/clear/sync", test_clear_sync);

Error: COMPILER_WARNING (CWE-843): [#def40]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-lang.vala:188:51: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_test_add_data_func’ from incompatible pointer type
/usr/include/glib-2.0/glib/gtestutils.h:378:58: note: expected ‘GTestDataFunc’ {aka ‘void (*)(const void *)’} but argument is of type ‘void (*)(void *)’
#  186|     GLib.Test.add_data_func ("/vala/lookup/no-name", test_lookup_no_name);
#  187|     GLib.Test.add_data_func ("/vala/store/sync", test_store_sync);
#  188|->   GLib.Test.add_data_func ("/vala/store/async", test_store_async);
#  189|     GLib.Test.add_data_func ("/vala/clear/sync", test_clear_sync);
#  190|     GLib.Test.add_data_func ("/vala/clear/async", test_clear_async);

Error: COMPILER_WARNING (CWE-843): [#def41]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-lang.vala:189:50: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_test_add_data_func’ from incompatible pointer type
/usr/include/glib-2.0/glib/gtestutils.h:378:58: note: expected ‘GTestDataFunc’ {aka ‘void (*)(const void *)’} but argument is of type ‘void (*)(void *)’
#  187|     GLib.Test.add_data_func ("/vala/store/sync", test_store_sync);
#  188|     GLib.Test.add_data_func ("/vala/store/async", test_store_async);
#  189|->   GLib.Test.add_data_func ("/vala/clear/sync", test_clear_sync);
#  190|     GLib.Test.add_data_func ("/vala/clear/async", test_clear_async);
#  191|   

Error: COMPILER_WARNING (CWE-843): [#def42]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-lang.vala:190:51: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_test_add_data_func’ from incompatible pointer type
/usr/include/glib-2.0/glib/gtestutils.h:378:58: note: expected ‘GTestDataFunc’ {aka ‘void (*)(const void *)’} but argument is of type ‘void (*)(void *)’
#  188|     GLib.Test.add_data_func ("/vala/store/async", test_store_async);
#  189|     GLib.Test.add_data_func ("/vala/clear/sync", test_clear_sync);
#  190|->   GLib.Test.add_data_func ("/vala/clear/async", test_clear_async);
#  191|   
#  192|     var res = GLib.Test.run ();

Error: COMPILER_WARNING (CWE-843): [#def43]
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-unstable.vala: scope_hint: In function ‘_vala_main’
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/test-vala-unstable.vala:31:66: warning[-Wincompatible-pointer-types]: passing argument 3 of ‘g_test_add_data_func’ from incompatible pointer type
#   31 |         GLib.Test.add_data_func ("/vala/unstable/read-alias", test_read_alias);
#      |                                                                  ^~~~~~~~~~~~~~                  
#      |                                                                  |
#      |                                                                  void (*)(void *)
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
libsecret-0.21.4-build/libsecret-0.21.4/libsecret/secret.h:18: included_from: Included from here.
/usr/include/glib-2.0/glib/gtestutils.h:378:58: note: expected ‘GTestDataFunc’ {aka ‘void (*)(const void *)’} but argument is of type ‘void (*)(void *)’
#  378 |                                          GTestDataFunc   test_func);
#      |                                          ~~~~~~~~~~~~~~~~^~~~~~~~~
#   29|   	}
#   30|   
#   31|-> 	GLib.Test.add_data_func ("/vala/unstable/read-alias", test_read_alias);
#   32|   
#   33|   	var res = GLib.Test.run ();

Error: CPPCHECK_WARNING: [#def44]
libsecret-0.21.4-build/libsecret-0.21.4/redhat-linux-build/libsecret/secret-dbus-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def45]
libsecret-0.21.4-build/libsecret-0.21.4/redhat-linux-build/tmp-introspectohh3qwba/Secret-1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def46]
libsecret-0.21.4-build/libsecret-0.21.4/redhat-linux-build/tmp-introspectohh3qwba/Secret-1.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def47]
libsecret-0.21.4-build/libsecret-0.21.4/redhat-linux-build/tmp-introspectpgwb7udk/MockService-0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def48]
libsecret-0.21.4-build/libsecret-0.21.4/redhat-linux-build/tmp-introspectpgwb7udk/MockService-0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def49]
libsecret-0.21.4-build/libsecret-0.21.4/tool/secret-tool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-252): [#def50]
libsecret-0.21.4-build/libsecret-0.21.4/tool/secret-tool.c: scope_hint: In function ‘write_password_stdout’
libsecret-0.21.4-build/libsecret-0.21.4/tool/secret-tool.c:202:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  202 |                 write (1, "\n", 1);
#      |                 ^~~~~~~~~~~~~~~~~~
#  200|   	/* Add a new line if we're writing out to a tty */
#  201|   	if (isatty (1))
#  202|-> 		write (1, "\n", 1);
#  203|   }
#  204|   

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-213.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibsecret-0.21.4-2.fc41
store-results-to/tmp/tmpypc8t2g2/libsecret-0.21.4-2.fc41.tar.xz
time-created2024-07-03 16:00:15
time-finished2024-07-03 16:01:41
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpypc8t2g2/libsecret-0.21.4-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpypc8t2g2/libsecret-0.21.4-2.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9