libxmlb-0.3.21-1.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
libxmlb-0.3.21-build/libxmlb-0.3.21/src/xb-machine.c: scope_hint: In function ‘xb_machine_opcode_tokenize’
libxmlb-0.3.21-build/libxmlb-0.3.21/src/xb-machine.c:1470:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
libxmlb-0.3.21-build/libxmlb-0.3.21/src/xb-machine.c:11: included_from: Included from here.
libxmlb-0.3.21-build/libxmlb-0.3.21/src/xb-machine.c:1444:18: note: in expansion of macro ‘g_strdup’
libxmlb-0.3.21-build/libxmlb-0.3.21/src/xb-machine.c: scope_hint: In function ‘xb_machine_opcode_tokenize’
libxmlb-0.3.21-build/libxmlb-0.3.21/src/xb-machine.c:19: included_from: Included from here.
libxmlb-0.3.21-build/libxmlb-0.3.21/src/xb-opcode-private.h:72:1: note: argument 2 of ‘xb_opcode_append_token’ must be non-null
# 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: COMPILER_WARNING (CWE-563): [#def2]
libxmlb-0.3.21-build/libxmlb-0.3.21/src/xb-value-bindings.c: scope_hint: In function ‘xb_value_bindings_copy’
libxmlb-0.3.21-build/libxmlb-0.3.21/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|   	}

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-221.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibxmlb-0.3.21-1.fc42
store-results-to/tmp/tmpnekuklgr/libxmlb-0.3.21-1.fc42.tar.xz
time-created2024-11-13 01:57:43
time-finished2024-11-13 01:59:53
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpnekuklgr/libxmlb-0.3.21-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpnekuklgr/libxmlb-0.3.21-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9