libxmlb-0.3.19-2.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libxmlb-0.3.19-build/libxmlb-0.3.19/redhat-linux-build/tmp-introspectswegwh0k/Xmlb-2.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2]
libxmlb-0.3.19-build/libxmlb-0.3.19/redhat-linux-build/tmp-introspectswegwh0k/Xmlb-2.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: [#def3]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-builder-node.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-builder-source-ctx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-builder-source.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-builder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def7]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-builder.c:844:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'helper'
#  842|   		XbBuilderFixup *fixup = g_ptr_array_index(priv->fixups, i);
#  843|   		if (!xb_builder_fixup_node(fixup, helper->root, error))
#  844|-> 			return NULL;
#  845|   	}
#  846|   

Error: CPPCHECK_WARNING: [#def8]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-machine.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-machine.c: scope_hint: In function ‘xb_machine_opcode_tokenize’
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-machine.c:1470:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-machine.c:11: included_from: Included from here.
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-machine.c:1444:18: note: in expansion of macro ‘g_strdup’
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-machine.c: scope_hint: In function ‘xb_machine_opcode_tokenize’
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-machine.c:19: included_from: Included from here.
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-opcode-private.h:75:1: note: argument 2 of ‘xb_opcode_append_token’ must be non-null
# 1468|   		if (!xb_string_token_valid(ascii_tokens[i]))
# 1469|   			continue;
# 1470|-> 		xb_opcode_append_token(op, xb_machine_intern_token(self, ascii_tokens[i]));
# 1471|   	}
# 1472|   }

Error: CPPCHECK_WARNING: [#def11]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-node-query.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-node.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-opcode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-query.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-self-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-silo-export.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-silo-query.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-silo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def19]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-silo.c:700:3: warning[deadcode.DeadStores]: Value stored to 'locker' is never read
#  698|   	/* no longer valid */
#  699|   	if (priv->enable_node_cache) {
#  700|-> 		locker = g_mutex_locker_new(&priv->nodes_mutex);
#  701|   		if (priv->nodes != NULL)
#  702|   			g_hash_table_remove_all(priv->nodes);

Error: CLANG_WARNING: [#def20]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-silo.c:1140:2: warning[deadcode.DeadStores]: Value stored to 'locker' is never read
# 1138|   		return xb_node_new(self, sn);
# 1139|   
# 1140|-> 	locker = g_mutex_locker_new(&priv->nodes_mutex);
# 1141|   
# 1142|   	/* ensure the cache exists */

Error: GCC_ANALYZER_WARNING (CWE-688): [#def21]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-silo.c: scope_hint: In function ‘xb_silo_machine_func_text_cb’
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-silo.c:1383:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-silo.c:41: included_from: Included from here.
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-opcode-private.h:75:1: note: argument 2 of ‘xb_opcode_append_token’ must be non-null
# 1381|   	for (guint i = 0; i < token_count; i++) {
# 1382|   		guint32 stridx = xb_silo_node_get_token_idx(query_data->sn, i);
# 1383|-> 		xb_opcode_append_token(op, xb_silo_from_strtab(silo, stridx));
# 1384|   	}
# 1385|   

Error: CPPCHECK_WARNING: [#def22]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-string.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-tool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-value-bindings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def25]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-value-bindings.c:147:12: warning[deadcode.DeadStores]: Value stored to 'copied' during its initialization is never read
#  145|   
#  146|   	for (gsize i = 0; i < G_N_ELEMENTS(_self->values); i++) {
#  147|-> 		gboolean copied = xb_value_bindings_copy_binding(self, i, copy, i);
#  148|   		g_assert(copied);
#  149|   	}

Error: COMPILER_WARNING (CWE-563): [#def26]
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-value-bindings.c: scope_hint: In function ‘xb_value_bindings_copy’
libxmlb-0.3.19-build/libxmlb-0.3.19/src/xb-value-bindings.c:147:26: warning[-Wunused-variable]: unused variable ‘copied’
#  147 |                 gboolean copied = xb_value_bindings_copy_binding(self, i, copy, i);
#      |                          ^~~~~~
#  145|   
#  146|   	for (gsize i = 0; i < G_N_ELEMENTS(_self->values); i++) {
#  147|-> 		gboolean copied = xb_value_bindings_copy_binding(self, i, copy, i);
#  148|   		g_assert(copied);
#  149|   	}

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-150.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibxmlb-0.3.19-2.fc41
store-results-to/tmp/tmpnzvdng8p/libxmlb-0.3.19-2.fc41.tar.xz
time-created2024-07-03 16:05:49
time-finished2024-07-03 16:07:41
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpnzvdng8p/libxmlb-0.3.19-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpnzvdng8p/libxmlb-0.3.19-2.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9