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
#   40 |         GTimeVal         last_restart_time;
#      |         ^~~~~~~~
/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
#  580 | struct _GTimeVal
#      |        ^~~~~~~~~
#   38|           char            *startup_id;
#   39|           gboolean         registered;
#   40|->         GTimeVal         last_restart_time;
#   41|           GDBusConnection *connection;
#   42|           GsmExportedApp  *skeleton;

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
#  516 |         GTimeVal current_time;
#      |         ^~~~~~~~
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
#  580 | struct _GTimeVal
#      |        ^~~~~~~~~
#  514|   {
#  515|           GsmAppPrivate *priv = gsm_app_get_instance_private (app);
#  516|->         GTimeVal current_time;
#  517|           g_debug ("Re-starting app: %s", priv->id);
#  518|   

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
#  519 |         g_get_current_time (&current_time);
#      |         ^~~~~~~~~~~~~~~~~~
/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
#  825 | void   g_get_current_time                 (GTimeVal       *result);
#      |        ^~~~~~~~~~~~~~~~~~
#  517|           g_debug ("Re-starting app: %s", priv->id);
#  518|   
#  519|->         g_get_current_time (&current_time);
#  520|           if (priv->last_restart_time.tv_sec > 0
#  521|               && (current_time.tv_sec - priv->last_restart_time.tv_sec) < _GSM_APP_RESPAWN_RATELIMIT_SECONDS) {

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 **)’}
#  530 | gsm_client_query_end_session (GsmClient                *client,
#      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 **)’}
#  115 | gboolean              gsm_client_query_end_session          (GsmClient  *client,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  528|   
#  529|   gboolean
#  530|-> gsm_client_query_end_session (GsmClient                *client,
#  531|                                 GsmClientEndSessionFlag   flags,
#  532|                                 GError                  **error)

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 **)’}
#  540 | gsm_client_end_session (GsmClient                *client,
#      | ^~~~~~~~~~~~~~~~~~~~~~
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 **)’}
#  112 | gboolean              gsm_client_end_session                (GsmClient  *client,
#      |                       ^~~~~~~~~~~~~~~~~~~~~~
#  538|   
#  539|   gboolean
#  540|-> gsm_client_end_session (GsmClient                *client,
#  541|                           GsmClientEndSessionFlag   flags,
#  542|                           GError                  **error)

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"
#  243 |         inhibitor->priv = GSM_INHIBITOR_GET_PRIVATE (inhibitor);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~             
#  241|   gsm_inhibitor_init (GsmInhibitor *inhibitor)
#  242|   {
#  243|->         inhibitor->priv = GSM_INHIBITOR_GET_PRIVATE (inhibitor);
#  244|   }
#  245|   

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
#  602|                                                               G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
#  603|   
#  604|->         g_type_class_add_private (klass, sizeof (GsmInhibitorPrivate));
#  605|   }
#  606|   

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’
# 3926 |                 system("/usr/sbin/grub2-set-bootflag boot_success");
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3924|                    * initiated directly from gdm.
# 3925|                    */
# 3926|->                 system("/usr/sbin/grub2-set-bootflag boot_success");
# 3927|                   reboot = TRUE;
# 3928|                   break;

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’
# 3936 |                 system("/usr/sbin/grub2-set-bootflag boot_success");
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3934|                    * initiated directly from gdm.
# 3935|                    */
# 3936|->                 system("/usr/sbin/grub2-set-bootflag boot_success");
# 3937|                   shutdown = TRUE;
# 3938|                   break;

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"
#  396 |         presence->priv = GSM_PRESENCE_GET_PRIVATE (presence);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                
#  394|   gsm_presence_init (GsmPresence *presence)
#  395|   {
#  396|->         presence->priv = GSM_PRESENCE_GET_PRIVATE (presence);
#  397|   
#  398|           presence->priv->idle_monitor = gnome_idle_monitor_new ();

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
#  530 |         g_type_class_add_private (klass, sizeof (GsmPresencePrivate));
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/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
# 1497 | void     g_type_class_add_private       (gpointer                    g_class,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  528|                                                               G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
#  529|   
#  530|->         g_type_class_add_private (klass, sizeof (GsmPresencePrivate));
#  531|   }
#  532|   

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
#   72|     object_class = G_OBJECT_CLASS (klass);
#   73|     object_class->finalize = gsm_shell_extensions_finalize;
#   74|->   g_type_class_add_private (object_class, sizeof (GsmShellExtensionsPrivate));
#   75|   }
#   76|   

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"
#  169 |   self->priv = SHELL_EXTENSIONS_PRIVATE (self);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                              
#  167|     GSettingsSchema *schema;
#  168|   
#  169|->   self->priv = SHELL_EXTENSIONS_PRIVATE (self);
#  170|   
#  171|     source = g_settings_schema_source_get_default ();

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
#  182 |         g_type_class_add_private (shell_class, sizeof (GsmShellPrivate));
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/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
# 1497 | void     g_type_class_add_private       (gpointer                    g_class,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  180|                                 G_TYPE_NONE, 0);
#  181|   
#  182|->         g_type_class_add_private (shell_class, sizeof (GsmShellPrivate));
#  183|   }
#  184|   

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"
#  222 |         shell->priv = GSM_SHELL_GET_PRIVATE (shell);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                         
#  220|   gsm_shell_init (GsmShell *shell)
#  221|   {
#  222|->         shell->priv = GSM_SHELL_GET_PRIVATE (shell);
#  223|   
#  224|           gsm_shell_ensure_connection (shell);

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
#  360 |         g_type_class_add_private (klass, sizeof (GsmStorePrivate));
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/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
# 1497 | void     g_type_class_add_private       (gpointer                    g_class,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  358|                                                                  G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
#  359|   
#  360|->         g_type_class_add_private (klass, sizeof (GsmStorePrivate));
#  361|   }
#  362|   

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"
#  374 |         store->priv = GSM_STORE_GET_PRIVATE (store);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                         
#  372|   {
#  373|   
#  374|->         store->priv = GSM_STORE_GET_PRIVATE (store);
#  375|   
#  376|           store->priv->objects = g_hash_table_new_full (g_str_hash,

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
#  163 |         g_type_class_add_private (manager_class, sizeof (GsmSystemdPrivate));
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/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
# 1497 | void     g_type_class_add_private       (gpointer                    g_class,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  161|           g_object_class_override_property (object_class, PROP_ACTIVE, "active");
#  162|   
#  163|->         g_type_class_add_private (manager_class, sizeof (GsmSystemdPrivate));
#  164|   }
#  165|   

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"
#  375 |                                                      GsmSystemdPrivate);
#      |             ^                                        ~~~~~~~~~~~~~~~~~~~     
#  373|           manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager,
#  374|                                                        GSM_TYPE_SYSTEMD,
#  375|->                                                      GsmSystemdPrivate);
#  376|   
#  377|           manager->priv->inhibit_fd = -1;

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
#  592 |         ret = sd_seat_can_multi_session (seat);
#      |         ^~~
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
#  214 | int sd_seat_can_multi_session(const char *seat) _sd_deprecated_;
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
#  590|   
#  591|           sd_session_get_seat (manager->priv->session_id, &seat);
#  592|->         ret = sd_seat_can_multi_session (seat);
#  593|           free (seat);
#  594|   

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"
#  199 |         client->priv = GSM_XSMP_CLIENT_GET_PRIVATE (client);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                 
#  197|   gsm_xsmp_client_init (GsmXSMPClient *client)
#  198|   {
#  199|->         client->priv = GSM_XSMP_CLIENT_GET_PRIVATE (client);
#  200|   
#  201|           client->priv->props = g_ptr_array_new ();

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
# 1039|                                                                  G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
# 1040|   
# 1041|->         g_type_class_add_private (klass, sizeof (GsmXSMPClientPrivate));
# 1042|   }
# 1043|   

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’
#  422|           file_entry = malloc (sizeof (IceAuthFileEntry));
#  423|   
#  424|->         file_entry->protocol_name = strdup (protocol);
#  425|           file_entry->protocol_data = NULL;
#  426|           file_entry->protocol_data_length = 0;

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
#  103 |         gdk_error_trap_push ();
#      |         ^~~~~~~~~~~~~~~~~~~
/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
#   70 | void                           gdk_error_trap_push        (void);
#      |                                ^~~~~~~~~~~~~~~~~~~
#  101|           char *renderer = NULL;
#  102|   
#  103|->         gdk_error_trap_push ();
#  104|   
#  105|           display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());

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
#  187 |         gdk_error_trap_pop_ignored ();
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gdk/gdkmain.h:75:32: note: declared here
#   75 | void                           gdk_error_trap_pop_ignored (void);
#      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  185|                   XDestroyWindow (display, win);
#  186|   
#  187|->         gdk_error_trap_pop_ignored ();
#  188|           return renderer;
#  189|   }

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"
#  153 |         g_main_quit (data->loop);
#      |             ^~~~~~~~~~~~~~~~~~~~~                                               
#  151|           MonitorLeader *data = (MonitorLeader*) user_data;
#  152|   
#  153|->         g_main_quit (data->loop);
#  154|   
#  155|           return G_SOURCE_REMOVE;

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’
#  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|           }

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.
#  314|             tcsetpgrp (0, pid);
#  315|           }
#  316|->       write(pipefd[1], "\0", 1);
#  317|         close(pipefd[1]);
#  318|         if (waitpid (pid, &status, 0) == -1)

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’
#  316 |       write(pipefd[1], "\0", 1);
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
#  314|             tcsetpgrp (0, pid);
#  315|           }
#  316|->       write(pipefd[1], "\0", 1);
#  317|         close(pipefd[1]);
#  318|         if (waitpid (pid, &status, 0) == -1)

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]’
#  315|           }
#  316|         write(pipefd[1], "\0", 1);
#  317|->       close(pipefd[1]);
#  318|         if (waitpid (pid, &status, 0) == -1)
#  319|           {

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-222.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namegnome-session-47.0.1-1.fc42
store-results-to/tmp/tmphvcz84xy/gnome-session-47.0.1-1.fc42.tar.xz
time-created2024-11-13 00:05:49
time-finished2024-11-13 00:07:37
toolcsmock
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-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9