Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] libxmlb-0.3.22/redhat-linux-build/../src/xb-machine.c:1470:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected libxmlb-0.3.22/redhat-linux-build/../src/xb-machine.c:1451:1: enter_function: entry to ‘xb_machine_opcode_tokenize’ libxmlb-0.3.22/redhat-linux-build/../src/xb-machine.c:1467:27: branch_true: following ‘true’ branch... libxmlb-0.3.22/redhat-linux-build/../src/xb-machine.c:1468:22: branch_true: ...to here libxmlb-0.3.22/redhat-linux-build/../src/xb-machine.c:1468:20: branch_false: following ‘false’ branch... libxmlb-0.3.22/redhat-linux-build/../src/xb-machine.c:1470:86: branch_false: ...to here libxmlb-0.3.22/redhat-linux-build/../src/xb-machine.c:1470:17: call_function: calling ‘xb_machine_intern_token’ from ‘xb_machine_opcode_tokenize’ libxmlb-0.3.22/redhat-linux-build/../src/xb-machine.c:1470:17: return_function: returning to ‘xb_machine_opcode_tokenize’ from ‘xb_machine_intern_token’ libxmlb-0.3.22/redhat-linux-build/../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): [#def2] libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:764:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_local’ libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:749:1: enter_function: entry to ‘xb_silo_query_build_index’ libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:751:27: release_memory: ‘error_local’ is NULL libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:754:9: call_function: calling ‘XB_IS_SILO’ from ‘xb_silo_query_build_index’ libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:754:9: return_function: returning to ‘xb_silo_query_build_index’ from ‘XB_IS_SILO’ libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:754:9: branch_true: following ‘true’ branch... libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:756:9: branch_true: ...to here libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:760:13: call_function: calling ‘silo_query_with_root’ from ‘xb_silo_query_build_index’ libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:760:13: return_function: returning to ‘xb_silo_query_build_index’ from ‘silo_query_with_root’ libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:761:12: branch_true: following ‘true’ branch... libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:762:21: branch_true: ...to here libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:762:21: release_memory: ‘error_local’ is NULL libxmlb-0.3.22/redhat-linux-build/../src/xb-silo-query.c:764:25: release_memory: ‘error_local’ is NULL libxmlb-0.3.22/redhat-linux-build/../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): [#def3] libxmlb-0.3.22/src/xb-value-bindings.c: scope_hint: In function ‘xb_value_bindings_copy’ libxmlb-0.3.22/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.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-230.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | libxmlb-0.3.22-1.fc43 |
store-results-to | /tmp/tmpzeihrfdi/libxmlb-0.3.22-1.fc43.tar.xz |
time-created | 2025-04-25 14:24:42 |
time-finished | 2025-04-25 14:26:45 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpzeihrfdi/libxmlb-0.3.22-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpzeihrfdi/libxmlb-0.3.22-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |