Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
libxmlb-0.3.27/src/xb-silo-node.c:30:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxmlb-0.3.27/src/xb-silo-node.c:11:1: enter_function: entry to ‘xb_silo_node_to_string’
libxmlb-0.3.27/src/xb-silo-node.c:28:29: branch_true: following ‘true’ branch...
libxmlb-0.3.27/src/xb-silo-node.c:29:40: branch_true: ...to here
libxmlb-0.3.27/src/xb-silo-node.c:29:40: call_function: inlined call to ‘xb_silo_node_get_attr’ from ‘xb_silo_node_to_string’
libxmlb-0.3.27/src/xb-silo-node.c:30:17: branch_true: ...to here
libxmlb-0.3.27/src/xb-silo-node.c:30:17: danger: dereference of NULL ‘<unknown>’
#   28|   	for (guint idx = 0; idx < self->attr_count; idx++) {
#   29|   		XbSiloNodeAttr *attr = xb_silo_node_get_attr(self, idx);
#   30|-> 		g_string_append_printf(str, "  attr: %u=%u\n", attr->attr_name, attr->attr_value);
#   31|   	}
#   32|   	return g_string_free(str, FALSE);

Error: COMPILER_WARNING (CWE-476): [#def2]
libxmlb-0.3.27/src/xb-silo-node.c: scope_hint: In function ‘xb_silo_node_to_string’
libxmlb-0.3.27/src/xb-silo-node.c:30:17: warning[-Wnull-dereference]: potential null pointer dereference
#   30 |                 g_string_append_printf(str, "  attr: %u=%u\n", attr->attr_name, attr->attr_value);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   28|   	for (guint idx = 0; idx < self->attr_count; idx++) {
#   29|   		XbSiloNodeAttr *attr = xb_silo_node_get_attr(self, idx);
#   30|-> 		g_string_append_printf(str, "  attr: %u=%u\n", attr->attr_name, attr->attr_value);
#   31|   	}
#   32|   	return g_string_free(str, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
libxmlb-0.3.27/src/xb-silo.c:509:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxmlb-0.3.27/src/xb-silo.c:501:1: enter_function: entry to ‘xb_silo_get_node_attr_by_str’
libxmlb-0.3.27/src/xb-silo.c:507:28: branch_true: following ‘true’ branch...
libxmlb-0.3.27/src/xb-silo.c:508:37: call_function: inlined call to ‘xb_silo_node_get_attr’ from ‘xb_silo_get_node_attr_by_str’
libxmlb-0.3.27/src/xb-silo.c:509:41: call_function: calling ‘xb_silo_from_strtab’ from ‘xb_silo_get_node_attr_by_str’
libxmlb-0.3.27/src/xb-silo.c:509:41: return_function: returning to ‘xb_silo_get_node_attr_by_str’ from ‘xb_silo_from_strtab’
libxmlb-0.3.27/src/xb-silo.c:510:20: branch_false: following ‘false’ branch...
libxmlb-0.3.27/src/xb-silo.c:512:21: branch_false: ...to here
libxmlb-0.3.27/src/xb-silo.c:512:20: branch_false: following ‘false’ branch...
libxmlb-0.3.27/src/xb-silo.c:507:44: branch_false: ...to here
libxmlb-0.3.27/src/xb-silo.c:507:28: branch_true: following ‘true’ branch...
libxmlb-0.3.27/src/xb-silo.c:508:37: call_function: inlined call to ‘xb_silo_node_get_attr’ from ‘xb_silo_get_node_attr_by_str’
libxmlb-0.3.27/src/xb-silo.c:509:67: danger: dereference of NULL ‘<unknown>’
#  507|   	for (guint8 i = 0; i < attr_count; i++) {
#  508|   		XbSiloNodeAttr *a = xb_silo_node_get_attr(n, i);
#  509|-> 		const gchar *name_tmp = xb_silo_from_strtab(self, a->attr_name, NULL);
#  510|   		if (name_tmp == NULL)
#  511|   			return NULL;

Error: COMPILER_WARNING (CWE-476): [#def4]
libxmlb-0.3.27/src/xb-silo.c: scope_hint: In function ‘xb_silo_get_node_attr_by_str’
libxmlb-0.3.27/src/xb-silo.c:509:68: warning[-Wnull-dereference]: potential null pointer dereference
#  509 |                 const gchar *name_tmp = xb_silo_from_strtab(self, a->attr_name, NULL);
#      |                                                                   ~^~~~~~~~~~~
#  507|   	for (guint8 i = 0; i < attr_count; i++) {
#  508|   		XbSiloNodeAttr *a = xb_silo_node_get_attr(n, i);
#  509|-> 		const gchar *name_tmp = xb_silo_from_strtab(self, a->attr_name, NULL);
#  510|   		if (name_tmp == NULL)
#  511|   			return NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
libxmlb-0.3.27/src/xb-silo.c:1990:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
libxmlb-0.3.27/src/xb-silo.c:1983:1: enter_function: entry to ‘xb_silo_lookup_query’
libxmlb-0.3.27/src/xb-silo.c:1985:27: release_memory: ‘error’ is NULL
libxmlb-0.3.27/src/xb-silo.c:1988:17: call_function: calling ‘xb_silo_lookup_query_full’ from ‘xb_silo_lookup_query’
libxmlb-0.3.27/src/xb-silo.c:1988:17: return_function: returning to ‘xb_silo_lookup_query’ from ‘xb_silo_lookup_query_full’
libxmlb-0.3.27/src/xb-silo.c:1989:12: branch_true: following ‘true’ branch...
libxmlb-0.3.27/src/xb-silo.c:1990:17: branch_true: ...to here
libxmlb-0.3.27/src/xb-silo.c:1990:17: release_memory: ‘error’ is NULL
libxmlb-0.3.27/src/xb-silo.c:1990:17: danger: dereference of NULL ‘error’
# 1988|   	query = xb_silo_lookup_query_full(self, xpath, &error);
# 1989|   	if (query == NULL) {
# 1990|-> 		g_warning("failed: %s", error->message);
# 1991|   		return NULL;
# 1992|   	}

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-105.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelibxmlb-0.3.25-1.fc44
diffbase-store-results-to/tmp/tmplrh595j_/libxmlb-0.3.25-1.fc44.tar.xz
diffbase-time-created2026-06-01 14:52:46
diffbase-time-finished2026-06-01 14:55:08
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmplrh595j_/libxmlb-0.3.25-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmplrh595j_/libxmlb-0.3.25-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-105.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibxmlb-0.3.27-1.fc45
store-results-to/tmp/tmpgg_4m30i/libxmlb-0.3.27-1.fc45.tar.xz
time-created2026-06-01 14:55:30
time-finished2026-06-01 14:57:22
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpgg_4m30i/libxmlb-0.3.27-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpgg_4m30i/libxmlb-0.3.27-1.fc45.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9