Task #130990 - added.err

back to task #130990
download
Error: GCC_ANALYZER_WARNING (CWE-775):
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):
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):
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:
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:
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|