Task #119200 - added.err
back to task #119200download
Error: GCC_ANALYZER_WARNING (CWE-476):
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):
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):
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):
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):
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| }