Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] libxmlb-0.3.29/src/xb-silo-node.c:30:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ libxmlb-0.3.29/src/xb-silo-node.c:11:1: enter_function: entry to ‘xb_silo_node_to_string’ libxmlb-0.3.29/src/xb-silo-node.c:28:29: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-silo-node.c:29:40: branch_true: ...to here libxmlb-0.3.29/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.29/src/xb-silo-node.c:30:17: branch_true: ...to here libxmlb-0.3.29/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.29/src/xb-silo-node.c: scope_hint: In function ‘xb_silo_node_to_string’ libxmlb-0.3.29/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.29/src/xb-silo.c:515:67: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ libxmlb-0.3.29/src/xb-silo.c:507:1: enter_function: entry to ‘xb_silo_get_node_attr_by_str’ libxmlb-0.3.29/src/xb-silo.c:513:28: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-silo.c:514:37: call_function: inlined call to ‘xb_silo_node_get_attr’ from ‘xb_silo_get_node_attr_by_str’ libxmlb-0.3.29/src/xb-silo.c:515:41: call_function: calling ‘xb_silo_from_strtab’ from ‘xb_silo_get_node_attr_by_str’ libxmlb-0.3.29/src/xb-silo.c:515:41: return_function: returning to ‘xb_silo_get_node_attr_by_str’ from ‘xb_silo_from_strtab’ libxmlb-0.3.29/src/xb-silo.c:516:20: branch_false: following ‘false’ branch... libxmlb-0.3.29/src/xb-silo.c:518:21: branch_false: ...to here libxmlb-0.3.29/src/xb-silo.c:518:20: branch_false: following ‘false’ branch... libxmlb-0.3.29/src/xb-silo.c:513:44: branch_false: ...to here libxmlb-0.3.29/src/xb-silo.c:513:28: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-silo.c:514:37: call_function: inlined call to ‘xb_silo_node_get_attr’ from ‘xb_silo_get_node_attr_by_str’ libxmlb-0.3.29/src/xb-silo.c:515:67: danger: dereference of NULL ‘<unknown>’ # 513| for (guint8 i = 0; i < attr_count; i++) { # 514| XbSiloNodeAttr *a = xb_silo_node_get_attr(n, i); # 515|-> const gchar *name_tmp = xb_silo_from_strtab(self, a->attr_name, NULL); # 516| if (name_tmp == NULL) # 517| return NULL; Error: COMPILER_WARNING (CWE-476): [#def4] libxmlb-0.3.29/src/xb-silo.c: scope_hint: In function ‘xb_silo_get_node_attr_by_str’ libxmlb-0.3.29/src/xb-silo.c:515:68: warning[-Wnull-dereference]: potential null pointer dereference # 515 | const gchar *name_tmp = xb_silo_from_strtab(self, a->attr_name, NULL); # | ~^~~~~~~~~~~ # 513| for (guint8 i = 0; i < attr_count; i++) { # 514| XbSiloNodeAttr *a = xb_silo_node_get_attr(n, i); # 515|-> const gchar *name_tmp = xb_silo_from_strtab(self, a->attr_name, NULL); # 516| if (name_tmp == NULL) # 517| return NULL; Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] libxmlb-0.3.29/src/xb-silo.c:2007:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’ libxmlb-0.3.29/src/xb-silo.c:2000:1: enter_function: entry to ‘xb_silo_lookup_query’ libxmlb-0.3.29/src/xb-silo.c:2002:27: release_memory: ‘error’ is NULL libxmlb-0.3.29/src/xb-silo.c:2005:17: call_function: calling ‘xb_silo_lookup_query_full’ from ‘xb_silo_lookup_query’ libxmlb-0.3.29/src/xb-silo.c:2005:17: return_function: returning to ‘xb_silo_lookup_query’ from ‘xb_silo_lookup_query_full’ libxmlb-0.3.29/src/xb-silo.c:2006:12: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-silo.c:2007:17: branch_true: ...to here libxmlb-0.3.29/src/xb-silo.c:2007:17: release_memory: ‘error’ is NULL libxmlb-0.3.29/src/xb-silo.c:2007:17: danger: dereference of NULL ‘error’ # 2005| query = xb_silo_lookup_query_full(self, xpath, &error); # 2006| if (query == NULL) { # 2007|-> g_warning("failed: %s", error->message); # 2008| return NULL; # 2009| }
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-97.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | libxmlb-0.3.25-1.fc44 |
| diffbase-store-results-to | /tmp/tmp67olegu8/libxmlb-0.3.25-1.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 18:12:02 |
| diffbase-time-finished | 2026-08-03 18:14:58 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp67olegu8/libxmlb-0.3.25-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp67olegu8/libxmlb-0.3.25-1.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-97.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libxmlb-0.3.29-1.fc45 |
| store-results-to | /tmp/tmppt8bjj2k/libxmlb-0.3.29-1.fc45.tar.xz |
| time-created | 2026-08-03 18:15:07 |
| time-finished | 2026-08-03 18:17:09 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmppt8bjj2k/libxmlb-0.3.29-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmppt8bjj2k/libxmlb-0.3.29-1.fc45.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |