gnome-session-47.0.1-1.fc42
List of Findings
Error: COMPILER_WARNING (CWE-477): [#def1]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-app.c:40:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-app.c:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def2]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-app.c: scope_hint: In function ‘gsm_app_restart’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-app.c:516:9: warning[-Wdeprecated-declarations]: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def3]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-app.c:519:9: warning[-Wdeprecated-declarations]: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead
/usr/include/glib-2.0/glib/giochannel.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gmain.h:825:8: note: declared here
Error: COMPILER_WARNING: [#def4]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-client.c:530:1: warning[-Wenum-int-mismatch]: conflicting types for ‘gsm_client_query_end_session’ due to enum/integer mismatch; have ‘gboolean(GsmClient *, GsmClientEndSessionFlag, GError **)’ {aka ‘int(struct _GsmClient *, GsmClientEndSessionFlag, struct _GError **)’}
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-client.c:22: included_from: Included from here.
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-client.h:115:23: note: previous declaration of ‘gsm_client_query_end_session’ with type ‘gboolean(GsmClient *, guint, GError **)’ {aka ‘int(struct _GsmClient *, unsigned int, struct _GError **)’}
Error: COMPILER_WARNING: [#def5]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-client.c:540:1: warning[-Wenum-int-mismatch]: conflicting types for ‘gsm_client_end_session’ due to enum/integer mismatch; have ‘gboolean(GsmClient *, GsmClientEndSessionFlag, GError **)’ {aka ‘int(struct _GsmClient *, GsmClientEndSessionFlag, struct _GError **)’}
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-client.h:112:23: note: previous declaration of ‘gsm_client_end_session’ with type ‘gboolean(GsmClient *, guint, GError **)’ {aka ‘int(struct _GsmClient *, unsigned int, struct _GError **)’}
Error: COMPILER_WARNING: [#def6]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-inhibitor.c: scope_hint: In function ‘gsm_inhibitor_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-inhibitor.c:243:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def7]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-inhibitor.c: scope_hint: In function ‘gsm_inhibitor_class_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-inhibitor.c:604:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING (CWE-252): [#def8]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-manager.c: scope_hint: In function ‘do_query_end_session_exit’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-manager.c:3926:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def9]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-manager.c:3936:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING: [#def10]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-presence.c: scope_hint: In function ‘gsm_presence_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-presence.c:396:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def11]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-presence.c: scope_hint: In function ‘gsm_presence_class_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-presence.c:530:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/gnome-desktop-3.0/libgnome-desktop/gnome-idle-monitor.h:30: included_from: Included from here.
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-presence.c:28: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def12]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-shell-extensions.c: scope_hint: In function ‘gsm_shell_extensions_class_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-shell-extensions.c:74:3: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: 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.
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-shell-extensions.c:25: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING: [#def13]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-shell-extensions.c: scope_hint: In function ‘gsm_shell_extensions_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-shell-extensions.c:169:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def14]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-shell.c: scope_hint: In function ‘gsm_shell_class_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-shell.c:182:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-shell.c:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING: [#def15]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-shell.c: scope_hint: In function ‘gsm_shell_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-shell.c:222:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def16]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-store.c: scope_hint: In function ‘gsm_store_class_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-store.c:360:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-store.c:30: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING: [#def17]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-store.c: scope_hint: In function ‘gsm_store_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-store.c:374:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def18]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_class_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-systemd.c:163:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-systemd.h:26: included_from: Included from here.
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-systemd.c:22: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: COMPILER_WARNING: [#def19]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-systemd.c:375:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def20]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-systemd.c: scope_hint: In function ‘gsm_systemd_can_switch_user’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-systemd.c:592:9: warning[-Wdeprecated-declarations]: ‘sd_seat_can_multi_session’ is deprecated
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-systemd.c:31: included_from: Included from here.
/usr/include/systemd/sd-login.h:214:5: note: declared here
Error: COMPILER_WARNING: [#def21]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-xsmp-client.c: scope_hint: In function ‘gsm_xsmp_client_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-xsmp-client.c:199:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
Error: COMPILER_WARNING (CWE-477): [#def22]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-xsmp-client.c: scope_hint: In function ‘gsm_xsmp_client_class_init’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-xsmp-client.c:1041:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-xsmp-server.c: scope_hint: In function ‘auth_entry_new’
gnome-session-47.0.1-build/gnome-session-47.0.1/gnome-session/gsm-xsmp-server.c:424:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘file_entry’
Error: COMPILER_WARNING (CWE-477): [#def24]
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-check-accelerated-gles-helper.c: scope_hint: In function ‘get_gles_renderer’
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-check-accelerated-gles-helper.c:103:9: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_push’ is deprecated: Use 'gdk_x11_display_error_trap_push' instead
/usr/include/gtk-3.0/gdk/gdk.h:50: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-check-accelerated-gles-helper.c:29: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkmain.h:70:32: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def25]
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-check-accelerated-gles-helper.c:187:9: warning[-Wdeprecated-declarations]: ‘gdk_error_trap_pop_ignored’ is deprecated: Use 'gdk_x11_display_error_trap_pop_ignored' instead
/usr/include/gtk-3.0/gdk/gdkmain.h:75:32: note: declared here
Error: COMPILER_WARNING: [#def26]
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-ctl.c: scope_hint: In function ‘leader_term_or_int_signal_cb’
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-ctl.c:153:13: warning: Deprecated pre-processor symbol: replace with "g_main_loop_quit"
Error: COMPILER_WARNING (CWE-252): [#def27]
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-ctl.c: scope_hint: In function ‘leader_fifo_io_cb’
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-ctl.c:169:17: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-910): [#def28]
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-inhibit.c: scope_hint: In function ‘wait_for_child_app’
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-inhibit.c:316:7: warning[-Wanalyzer-fd-use-after-close]: ‘write’ on closed file descriptor ‘pipefd[1]’
/usr/include/sys/wait.h:52: included_from: Included from here.
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-inhibit.c:21: included_from: Included from here.
Error: COMPILER_WARNING (CWE-252): [#def29]
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-inhibit.c: scope_hint: In function ‘wait_for_child_app’
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-inhibit.c:316:7: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def30]
gnome-session-47.0.1-build/gnome-session-47.0.1/tools/gnome-session-inhibit.c:317:7: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘pipefd[1]’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-222.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | gnome-session-47.0.1-1.fc42 |
store-results-to | /tmp/tmphvcz84xy/gnome-session-47.0.1-1.fc42.tar.xz |
time-created | 2024-11-13 00:05:49 |
time-finished | 2024-11-13 00:07:37 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmphvcz84xy/gnome-session-47.0.1-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmphvcz84xy/gnome-session-47.0.1-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |