Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] libxmlb-0.3.29/src/xb-machine.c:1416:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected libxmlb-0.3.29/src/xb-machine.c:1402:1: enter_function: entry to ‘xb_machine_opcode_tokenize’ libxmlb-0.3.29/src/xb-machine.c:1413:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1414:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1413:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1414:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1413:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1414:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1413:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1414:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1413:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1414:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1413:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1414:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1413:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1414:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1413:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1414:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1413:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1414:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1413:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1414:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1416:17: call_function: calling ‘xb_machine_intern_token’ from ‘xb_machine_opcode_tokenize’ libxmlb-0.3.29/src/xb-machine.c:1416:17: return_function: returning to ‘xb_machine_opcode_tokenize’ from ‘xb_machine_intern_token’ libxmlb-0.3.29/src/xb-machine.c:1416:17: danger: argument 2 (‘xb_machine_intern_token(self, *<unknown>)’) NULL where non-null expected # 1414| if (!xb_string_token_valid(tokens[i])) # 1415| continue; # 1416|-> xb_opcode_append_token(op, xb_machine_intern_token(self, tokens[i])); # 1417| } # 1418| for (guint i = 0; ascii_tokens[i] != NULL; i++) { Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] libxmlb-0.3.29/src/xb-machine.c:1421:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected libxmlb-0.3.29/src/xb-machine.c:1418:27: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-machine.c:1419:22: branch_true: ...to here libxmlb-0.3.29/src/xb-machine.c:1421:17: danger: argument 2 (‘xb_machine_intern_token(self, *<unknown>)’) NULL where non-null expected # 1419| if (!xb_string_token_valid(ascii_tokens[i])) # 1420| continue; # 1421|-> xb_opcode_append_token(op, xb_machine_intern_token(self, ascii_tokens[i])); # 1422| } # 1423| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] 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): [#def4] 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): [#def5] libxmlb-0.3.29/src/xb-silo-query.c:791:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_local’ libxmlb-0.3.29/src/xb-silo-query.c:776:1: enter_function: entry to ‘xb_silo_query_build_index’ libxmlb-0.3.29/src/xb-silo-query.c:778:27: release_memory: ‘error_local’ is NULL libxmlb-0.3.29/src/xb-silo-query.c:781:9: call_function: calling ‘XB_IS_SILO’ from ‘xb_silo_query_build_index’ libxmlb-0.3.29/src/xb-silo-query.c:781:9: return_function: returning to ‘xb_silo_query_build_index’ from ‘XB_IS_SILO’ libxmlb-0.3.29/src/xb-silo-query.c:781:9: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-silo-query.c:783:9: branch_true: ...to here libxmlb-0.3.29/src/xb-silo-query.c:787:13: call_function: calling ‘silo_query_with_root’ from ‘xb_silo_query_build_index’ libxmlb-0.3.29/src/xb-silo-query.c:787:13: return_function: returning to ‘xb_silo_query_build_index’ from ‘silo_query_with_root’ libxmlb-0.3.29/src/xb-silo-query.c:788:12: branch_true: following ‘true’ branch... libxmlb-0.3.29/src/xb-silo-query.c:789:21: branch_true: ...to here libxmlb-0.3.29/src/xb-silo-query.c:789:21: release_memory: ‘error_local’ is NULL libxmlb-0.3.29/src/xb-silo-query.c:791:25: release_memory: ‘error_local’ is NULL libxmlb-0.3.29/src/xb-silo-query.c:791:25: danger: dereference of NULL ‘error_local’ # 789| if (g_error_matches(error_local, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT) || # 790| g_error_matches(error_local, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) { # 791|-> g_debug("ignoring index: %s", error_local->message); # 792| return TRUE; # 793| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] 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): [#def7] 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): [#def8] 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| } Error: COMPILER_WARNING (CWE-563): [#def9] libxmlb-0.3.29/src/xb-value-bindings.c: scope_hint: In function ‘xb_value_bindings_copy’ libxmlb-0.3.29/src/xb-value-bindings.c:145:26: warning[-Wunused-variable]: unused variable ‘copied’ # 145 | gboolean copied = xb_value_bindings_copy_binding(self, i, copy, i); # | ^~~~~~ # 143| # 144| for (gsize i = 0; i < G_N_ELEMENTS(_self->values); i++) { # 145|-> gboolean copied = xb_value_bindings_copy_binding(self, i, copy, i); # 146| g_assert(copied); # 147| }
| 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 |
| 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 |
| 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 |