xfce4-session-4.18.4-2.fc41

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/libxfsm/xfsm-util.c: scope_hint: In function 'xfsm_start_application'
xfce4-session-4.18.4-build/xfce4-session-4.18.4/libxfsm/xfsm-util.c:85:42: warning[-Wdeprecated-declarations]: 'gdk_screen_get_number' is deprecated
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkx.h:28: included_from: Included from here.
xfce4-session-4.18.4-build/xfce4-session-4.18.4/libxfsm/xfsm-util.c:41: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkscreen.h:56:14: note: declared here
#   83|   
#   84|             screen_name = g_strdup_printf ("%s.%d", display_name,
#   85|->                                          gdk_screen_get_number (screen));
#   86|           }
#   87|         else

Error: COMPILER_WARNING (CWE-477): [#def2]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/libxfsm/xfsm-util.c:88:9: warning[-Wdeprecated-declarations]: 'gdk_screen_make_display_name' is deprecated
/usr/include/gtk-3.0/gdk/gdkscreen.h:71:14: note: declared here
#   86|           }
#   87|         else
#   88|->         screen_name = gdk_screen_make_display_name (screen);
#   89|         argv[argc++] = g_strdup ("env");
#   90|         argv[argc++] = g_strdup_printf ("DISPLAY=%s", screen_name);

Error: CPPCHECK_WARNING: [#def3]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/settings/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/settings/session-editor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/settings/xfae-model.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/settings/xfsm-client-dbus-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/settings/xfsm-manager-dbus-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session-logout/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/main.c: scope_hint: In function ‘setup_environment’
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/main.c:115:8: warning[-Wanalyzer-null-argument]: use of NULL ‘authfile’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: 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.
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/main.c:49: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/main.c:112:16: note: in expansion of macro ‘g_strdup’
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/main.c: scope_hint: In function ‘setup_environment’
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/main.c:31: included_from: Included from here.
/usr/include/fcntl.h:209:12: note: argument 1 of ‘open’ must be non-null
#  113|     else
#  114|       authfile = xfce_get_homefile (".ICEauthority", NULL);
#  115|->   fd = open (authfile, O_RDWR | O_CREAT, 0600);
#  116|     if (fd < 0)
#  117|       {

Error: CPPCHECK_WARNING: [#def11]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/sm-layer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-client-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-compat-gnome.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-global.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-legacy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def17]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-legacy.c: scope_hint: In function ‘xfsm_legacy_perform_session_save’
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-legacy.c:340:7: warning[-Wdeprecated-declarations]: ‘wnck_screen_get’ is deprecated: Use 'wnck_handle_get_screen' instead
/usr/include/libwnck-3.0/libwnck/wnck-handle.h:26: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/libwnck.h:26: included_from: Included from here.
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-legacy.c:75: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/screen.h:201:16: note: declared here
#  338|     for (n = 0; n < ScreenCount (gdk_x11_get_default_xdisplay ()); ++n)
#  339|       {
#  340|->       screen = wnck_screen_get (n);
#  341|         wnck_screen_force_update (screen);
#  342|   

Error: CPPCHECK_WARNING: [#def18]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-logout-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def19]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-logout-dialog.c: scope_hint: In function ‘xfsm_logout_dialog_screenshot_new’
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-logout-dialog.c:564:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_width’ is deprecated
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-3.0/gtk/gtk.h:30: included_from: Included from here.
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-logout-dialog.c:47: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdkscreen.h:58:14: note: declared here
#  562|     screen_rect.x = 0;
#  563|     screen_rect.y = 0;
#  564|->   screen_rect.width = gdk_screen_get_width (screen);
#  565|     screen_rect.height = gdk_screen_get_height (screen);
#  566|   

Error: COMPILER_WARNING (CWE-477): [#def20]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-logout-dialog.c:565:3: warning[-Wdeprecated-declarations]: ‘gdk_screen_get_height’ is deprecated
/usr/include/gtk-3.0/gdk/gdkscreen.h:60:14: note: declared here
#  563|     screen_rect.y = 0;
#  564|     screen_rect.width = gdk_screen_get_width (screen);
#  565|->   screen_rect.height = gdk_screen_get_height (screen);
#  566|   
#  567|     window = gdk_screen_get_root_window (screen);

Error: CPPCHECK_WARNING: [#def21]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-manager-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def23]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-manager.c: scope_hint: In function ‘xfsm_manager_restore_active_workspace’
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-manager.c:303:7: warning[-Wdeprecated-declarations]: ‘wnck_screen_get’ is deprecated: Use 'wnck_handle_get_screen' instead
/usr/include/libwnck-3.0/libwnck/wnck-handle.h:26: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/libwnck.h:26: included_from: Included from here.
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-manager.c:52: included_from: Included from here.
/usr/include/libwnck-3.0/libwnck/screen.h:201:16: note: declared here
#  301|         m = g_key_file_get_integer (file, group, buffer, NULL);
#  302|   
#  303|->       screen = wnck_screen_get (n);
#  304|         wnck_screen_force_update (screen);
#  305|   

Error: COMPILER_WARNING (CWE-477): [#def24]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-manager.c: scope_hint: In function ‘xfsm_manager_store_session’
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-manager.c:1880:7: warning[-Wdeprecated-declarations]: ‘wnck_screen_get’ is deprecated: Use 'wnck_handle_get_screen' instead
/usr/include/libwnck-3.0/libwnck/screen.h:201:16: note: declared here
# 1878|     for (n = 0; n < XScreenCount (gdk_x11_display_get_xdisplay (display)); ++n)
# 1879|       {
# 1880|->       screen = wnck_screen_get (n);
# 1881|         wnck_screen_force_update (screen);
# 1882|   

Error: CPPCHECK_WARNING: [#def25]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-properties.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def26]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-properties.c:657:27: warning[unix.Malloc]: Potential leak of memory pointed to by 'value_strv'
#  655|             g_value_take_boxed (value, value_strv);
#  656|             g_tree_replace (properties->sm_properties,
#  657|->                           g_strdup (sm_prop->name),
#  658|                             value);
#  659|           }

Error: CPPCHECK_WARNING: [#def27]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-shutdown.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfce4-session/xfsm-startup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
xfce4-session-4.18.4-build/xfce4-session-4.18.4/xfsm-shutdown-helper/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-190.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namexfce4-session-4.18.4-2.fc41
store-results-to/tmp/tmpkpr27ncg/xfce4-session-4.18.4-2.fc41.tar.xz
time-created2024-07-03 18:25:43
time-finished2024-07-03 18:27:50
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpkpr27ncg/xfce4-session-4.18.4-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpkpr27ncg/xfce4-session-4.18.4-2.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9