libgsf-1.14.53-2.fc42

List of Findings

Error: COMPILER_WARNING: [#def1]
libgsf-1.14.53-build/libgsf-1.14.53/build/gsf/tmp-introspect2p8a0d4b/Gsf-1.c: scope_hint: In function ‘dump_properties’
libgsf-1.14.53-build/libgsf-1.14.53/build/gsf/tmp-introspect2p8a0d4b/Gsf-1.c:287:7: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
#  287 |       const GValue *v = g_param_spec_get_default_value (prop);
#      |       ^~~~~

Error: COMPILER_WARNING: [#def2]
libgsf-1.14.53-build/libgsf-1.14.53/build/gsf/tmp-introspect2p8a0d4b/Gsf-1.c: scope_hint: In function ‘dump_irepository’
libgsf-1.14.53-build/libgsf-1.14.53/build/gsf/tmp-introspect2p8a0d4b/Gsf-1.c:654:3: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
#  654 |   const char *input_filename = args[0];
#      |   ^~~~~

Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf-msole-utils.c: scope_hint: In function 'gsf_msole_inflate'
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf-msole-utils.c:2642:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'buffer[srcpos]'
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf.h:96: included_from: Included from here.
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf-msole-utils.c:26: included_from: Included from here.
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf-msole-utils.c:2628:41: note: in expansion of macro 'GSF_LE_GET_GUINT16'
# 2640|   				for (i = 0; i < len; i++) {
# 2641|   					unsigned srcpos = (pos - distance - 1) % VBA_COMPRESSION_WINDOW;
# 2642|-> 					guint8 c = buffer [srcpos];
# 2643|   					buffer [pos++ % VBA_COMPRESSION_WINDOW] = c;
# 2644|   				}

Error: GCC_ANALYZER_WARNING (CWE-835): [#def4]
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf-structured-blob.c: scope_hint: In function 'blob_child_by_name'
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf-structured-blob.c:153:38: warning[-Wanalyzer-infinite-loop]: infinite loop
/usr/include/glib-2.0/glib.h:33: included_from: Included from here.
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf-fwd.h:25: included_from: Included from here.
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf-structured-blob.h:25: included_from: Included from here.
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf-structured-blob.c:23: included_from: Included from here.
libgsf-1.14.53-build/libgsf-1.14.53/gsf/gsf-structured-blob.c:154:43: note: in expansion of macro 'g_ptr_array_index'
#  151|   		unsigned i;
#  152|   
#  153|-> 		for (i = 0 ; i < blob->children->len ;) {
#  154|   			GsfInput *child = g_ptr_array_index (blob->children, i);
#  155|   			if (child && !strcmp (gsf_input_name (child), name))

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-105.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibgsf-1.14.53-2.fc42
store-results-to/tmp/tmpkmiifdd6/libgsf-1.14.53-2.fc42.tar.xz
time-created2024-11-13 01:24:42
time-finished2024-11-13 01:27:08
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpkmiifdd6/libgsf-1.14.53-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpkmiifdd6/libgsf-1.14.53-2.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9