gnome-session-49.2-13.fc44

List of Findings

Error: COMPILER_WARNING (CWE-252): [#def1]
gnome-session-49.2/gnome-session/gsm-manager.c: scope_hint: In function ‘do_query_end_session_exit’
gnome-session-49.2/gnome-session/gsm-manager.c:2311:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 2311 |         system("/usr/sbin/grub2-set-bootflag boot_success");
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2309|            * initiated directly from gdm.
# 2310|            */
# 2311|->         system("/usr/sbin/grub2-set-bootflag boot_success");
# 2312|   
# 2313|           g_signal_connect (manager->system, "shutdown-prepared",

Error: GCC_ANALYZER_WARNING (CWE-404): [#def2]
gnome-session-49.2/gnome-session/gsm-util.c:153:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gnome-session-49.2/gnome-session/gsm-util.c:152:9: acquire_resource: ‘va_start’ called here
gnome-session-49.2/gnome-session/gsm-util.c:153:15: throw: if ‘g_strdup_vprintf’ throws an exception...
gnome-session-49.2/gnome-session/gsm-util.c:153:15: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  151|   
#  152|           va_start (args, format);
#  153|->         msg = g_strdup_vprintf (format, args);
#  154|           va_end (args);
#  155|   

Error: COMPILER_WARNING (CWE-252): [#def3]
gnome-session-49.2/tools/gnome-session-ctl.c: scope_hint: In function ‘leader_fifo_io_cb’
gnome-session-49.2/tools/gnome-session-ctl.c:169:17: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
#  169 |                 read (data->fifo_fd, buf, 1);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  167|           if (condition & G_IO_IN) {
#  168|                   char buf[1];
#  169|->                 read (data->fifo_fd, buf, 1);
#  170|                   g_main_loop_quit (data->loop);
#  171|           }

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-45.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegnome-session-49.2-13.fc44
store-results-to/tmp/tmp3pu6bhcg/gnome-session-49.2-13.fc44.tar.xz
time-created2026-01-08 16:31:08
time-finished2026-01-08 16:32:48
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp3pu6bhcg/gnome-session-49.2-13.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp3pu6bhcg/gnome-session-49.2-13.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9