Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
glib-2.89.3/gio/gmemorymonitorpsi.c:465:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
glib-2.89.3/gio/gmemorymonitorpsi.c:403:6: branch_false: following ‘false’ branch...
glib-2.89.3/gio/gmemorymonitorpsi.c:411:20: branch_false: ...to here
glib-2.89.3/gio/gmemorymonitorpsi.c:411:12: acquire_resource: opened here
glib-2.89.3/gio/gmemorymonitorpsi.c:412:10: branch_false: following ‘false’ branch...
glib-2.89.3/gio/gmemorymonitorpsi.c:422:3: branch_false: ...to here
glib-2.89.3/gio/gmemorymonitorpsi.c:426:10: branch_true: following ‘true’ branch (when ‘wlen != 0’)...
glib-2.89.3/gio/gmemorymonitorpsi.c:429:13: branch_true: ...to here
glib-2.89.3/gio/gmemorymonitorpsi.c:433:14: branch_false: following ‘false’ branch (when ‘errsv != 4’)...
glib-2.89.3/gio/gmemorymonitorpsi.c:440:15: branch_false: ...to here
glib-2.89.3/gio/gmemorymonitorpsi.c:444:18: branch_true: following ‘true’ branch...
glib-2.89.3/gio/gmemorymonitorpsi.c:446:19: branch_true: ...to here
glib-2.89.3/gio/gmemorymonitorpsi.c:447:19: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.89.3/gio/gmemorymonitorpsi.c:448:19: branch_false: ...to here
glib-2.89.3/gio/gmemorymonitorpsi.c:448:19: branch_false: following ‘false’ branch (when ‘_ptr’ is NULL)...
glib-2.89.3/gio/gmemorymonitorpsi.c:448:19: branch_false: ...to here
glib-2.89.3/gio/gmemorymonitorpsi.c:465:1: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  463|   
#  464|     return g_steal_pointer (&source);
#  465|-> }
#  466|   
#  467|   static GSource *

Error: CPPCHECK_WARNING (CWE-457): [#def2]
glib-2.89.3/gio/gnetworkmonitornetlink.c:370: error[legacyUninitvar]: Uninitialized variable: maskp
#  368|       }
#  369|   
#  370|->   if (*maskp == NULL)
#  371|       {
#  372|         GInetAddress *any = g_inet_address_new_any (socket_family);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
glib-2.89.3/glib/tests/testing.c:496:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘_ret’
glib-2.89.3/glib/tests/testing.c:457:6: branch_false: following ‘false’ branch...
glib-2.89.3/glib/tests/testing.c:471:18: branch_false: ...to here
glib-2.89.3/glib/tests/testing.c:477:3: acquire_resource: opened here
glib-2.89.3/glib/tests/testing.c:477:3: branch_false: following ‘false’ branch (when ‘_ret >= 0’)...
glib-2.89.3/glib/tests/testing.c:480:3: branch_false: ...to here
glib-2.89.3/glib/tests/testing.c:488:3: branch_false: following ‘false’ branch (when ‘_ret >= 0’)...
glib-2.89.3/glib/tests/testing.c:490:3: branch_false: ...to here
glib-2.89.3/glib/tests/testing.c:496:1: danger: ‘_ret’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  494|     g_test_skip ("Testing stdin for subprocesses can only be done on Unix at the moment");
#  495|   #endif
#  496|-> }
#  497|   
#  498|   /* run a test with fixture setup and teardown */

Error: GCC_ANALYZER_WARNING: [#def4]
glib-2.89.3/gobject/tests/performance/performance.c:554:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib-2.89.3/gobject/tests/performance/performance.c:551:6: branch_true: following ‘true’ branch...
glib-2.89.3/gobject/tests/performance/performance.c:553:7: branch_true: ...to here
glib-2.89.3/gobject/tests/performance/performance.c:554:23: branch_true: following ‘true’ branch...
glib-2.89.3/gobject/tests/performance/performance.c:554:23: branch_true: ...to here
glib-2.89.3/gobject/tests/performance/performance.c:554:23: danger: operand ‘count_factor’ is of type ‘double’
#  552|       {
#  553|         data->n_objects = n;
#  554|->       data->objects = g_renew (GObject *, data->objects, n);
#  555|       }
#  556|   }

Error: GCC_ANALYZER_WARNING: [#def5]
glib-2.89.3/gobject/tests/performance/performance.c:676:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
glib-2.89.3/gobject/tests/performance/performance.c:673:6: branch_true: following ‘true’ branch...
glib-2.89.3/gobject/tests/performance/performance.c:675:7: branch_true: ...to here
glib-2.89.3/gobject/tests/performance/performance.c:676:23: branch_true: following ‘true’ branch...
glib-2.89.3/gobject/tests/performance/performance.c:676:23: branch_true: ...to here
glib-2.89.3/gobject/tests/performance/performance.c:676:23: danger: operand ‘count_factor’ is of type ‘double’
#  674|       {
#  675|         data->n_objects = n;
#  676|->       data->objects = g_renew (GObject *, data->objects, n);
#  677|       }
#  678|   

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-75.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameglib2-2.88.0-1.fc44
diffbase-store-results-to/tmp/tmp1tofktdt/glib2-2.88.0-1.fc44.tar.xz
diffbase-time-created2026-08-03 14:34:22
diffbase-time-finished2026-08-03 14:48:20
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp1tofktdt/glib2-2.88.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1tofktdt/glib2-2.88.0-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-75.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameglib2-2.89.3-1.fc45
store-results-to/tmp/tmp7mtgz9sa/glib2-2.89.3-1.fc45.tar.xz
time-created2026-08-03 14:48:52
time-finished2026-08-03 15:01:09
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp7mtgz9sa/glib2-2.89.3-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp7mtgz9sa/glib2-2.89.3-1.fc45.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9