Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] libxmlb-0.3.25/src/xb-machine.c:1465:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected libxmlb-0.3.25/src/xb-machine.c:1451:1: enter_function: entry to ‘xb_machine_opcode_tokenize’ libxmlb-0.3.25/src/xb-machine.c:1462:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1463:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1462:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1463:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1462:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1463:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1462:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1463:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1462:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1463:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1462:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1463:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1462:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1463:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1462:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1463:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1462:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1463:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1462:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1463:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1465:17: call_function: calling ‘xb_machine_intern_token’ from ‘xb_machine_opcode_tokenize’ libxmlb-0.3.25/src/xb-machine.c:1465:17: return_function: returning to ‘xb_machine_opcode_tokenize’ from ‘xb_machine_intern_token’ libxmlb-0.3.25/src/xb-machine.c:1465:17: danger: argument 2 (‘xb_machine_intern_token(self, *<unknown>)’) NULL where non-null expected # 1463| if (!xb_string_token_valid(tokens[i])) # 1464| continue; # 1465|-> xb_opcode_append_token(op, xb_machine_intern_token(self, tokens[i])); # 1466| } # 1467| for (guint i = 0; ascii_tokens[i] != NULL; i++) { Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] libxmlb-0.3.25/src/xb-machine.c:1470:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected libxmlb-0.3.25/src/xb-machine.c:1467:27: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-machine.c:1468:22: branch_true: ...to here libxmlb-0.3.25/src/xb-machine.c:1470:17: danger: argument 2 (‘xb_machine_intern_token(self, *<unknown>)’) NULL where non-null expected # 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: GCC_ANALYZER_WARNING (CWE-476): [#def3] libxmlb-0.3.25/src/xb-silo-query.c:764:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_local’ libxmlb-0.3.25/src/xb-silo-query.c:749:1: enter_function: entry to ‘xb_silo_query_build_index’ libxmlb-0.3.25/src/xb-silo-query.c:751:27: release_memory: ‘error_local’ is NULL libxmlb-0.3.25/src/xb-silo-query.c:754:9: call_function: calling ‘XB_IS_SILO’ from ‘xb_silo_query_build_index’ libxmlb-0.3.25/src/xb-silo-query.c:754:9: return_function: returning to ‘xb_silo_query_build_index’ from ‘XB_IS_SILO’ libxmlb-0.3.25/src/xb-silo-query.c:754:9: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-silo-query.c:756:9: branch_true: ...to here libxmlb-0.3.25/src/xb-silo-query.c:760:13: call_function: calling ‘silo_query_with_root’ from ‘xb_silo_query_build_index’ libxmlb-0.3.25/src/xb-silo-query.c:760:13: return_function: returning to ‘xb_silo_query_build_index’ from ‘silo_query_with_root’ libxmlb-0.3.25/src/xb-silo-query.c:761:12: branch_true: following ‘true’ branch... libxmlb-0.3.25/src/xb-silo-query.c:762:21: branch_true: ...to here libxmlb-0.3.25/src/xb-silo-query.c:762:21: release_memory: ‘error_local’ is NULL libxmlb-0.3.25/src/xb-silo-query.c:764:25: release_memory: ‘error_local’ is NULL libxmlb-0.3.25/src/xb-silo-query.c:764:25: danger: dereference of NULL ‘error_local’ # 762| if (g_error_matches(error_local, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT) || # 763| g_error_matches(error_local, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) { # 764|-> g_debug("ignoring index: %s", error_local->message); # 765| return TRUE; # 766| } Error: COMPILER_WARNING (CWE-563): [#def4] libxmlb-0.3.25/src/xb-value-bindings.c: scope_hint: In function ‘xb_value_bindings_copy’ libxmlb-0.3.25/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| }
| 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.25-1.fc44 |
| store-results-to | /tmp/tmp67olegu8/libxmlb-0.3.25-1.fc44.tar.xz |
| time-created | 2026-08-03 18:12:02 |
| time-finished | 2026-08-03 18:14:58 |
| tool | csmock |
| 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' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |