xfce4-settings-4.18.6-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/common/display-profiles.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/common/xfce-randr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

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

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

Error: CLANG_WARNING: [#def6]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/main.c:379:9: warning[deadcode.DeadStores]: Value stored to 'response_id' is never read
#  377|       else
#  378|       {
#  379|->         response_id = 2;
#  380|           g_error ("Failed to load the UI file: %s.", error->message);
#  381|           g_error_free (error);

Error: CLANG_WARNING: [#def7]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/main.c:1870:17: warning[deadcode.DeadStores]: Value stored to 'profile_response_id' is never read
# 1868|               else
# 1869|               {
# 1870|->                 profile_response_id = 2;
# 1871|                   g_error ("Failed to load the UI file: %s.", error->message);
# 1872|                   g_error_free (error);

Error: COMPILER_WARNING (CWE-457): [#def8]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/main.c:2671:15: warning[-Wmaybe-uninitialized]: 'x' may be used uninitialized
# 2671 |     output->x = x;
#      |               ^
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/main.c:2663:10: note: 'x' was declared here
# 2663 |     gint x, y;
#      |          ^
# 2669|       output = g_new0 (XfceOutputInfo, 1);
# 2670|       output->id = output_id;
# 2671|->     output->x = x;
# 2672|       output->y = y;
# 2673|       output->scalex = xfce_randr->scalex[output_id];

Error: COMPILER_WARNING (CWE-457): [#def9]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/main.c: scope_hint: In function 'convert_xfce_output_info'
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/main.c:2672:15: warning[-Wmaybe-uninitialized]: 'y' may be used uninitialized
# 2672 |     output->y = y;
#      |               ^
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/main.c:2663:13: note: 'y' was declared here
# 2663 |     gint x, y;
#      |             ^
# 2670|       output->id = output_id;
# 2671|       output->x = x;
# 2672|->     output->y = y;
# 2673|       output->scalex = xfce_randr->scalex[output_id];
# 2674|       output->scaley = xfce_randr->scaley[output_id];

Error: CLANG_WARNING: [#def10]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/main.c:3786:44: warning[unix.Malloc]: Potential leak of memory pointed to by 'output'
# 3784|   
# 3785|       /* Walk all the connected outputs */
# 3786|->     for (m = 0; m < xfce_randr->noutput; ++m)
# 3787|       {
# 3788|           XfceOutputInfo *output;

Error: CLANG_WARNING: [#def11]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/main.c:3851:28: warning[unix.Malloc]: Potential leak of memory pointed to by 'output'
# 3849|           output_rect.y      = output->y;
# 3850|           output_rect.width  = output->width;
# 3851|->         output_rect.height = output->height;
# 3852|   
# 3853|           if (xfce_randr->mode[m] != None)

Error: CLANG_WARNING: [#def12]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/main.c:4462:25: warning[core.NullDereference]: Access to field 'noutput' results in a dereference of a null pointer (loaded from variable 'xfce_randr')
# 4460|   
# 4461|           /* Store a Fallback of the current settings */
# 4462|->         for (i = 0; i < xfce_randr->noutput; i++)
# 4463|               xfce_randr_save_output (xfce_randr, "Fallback", display_channel, i);
# 4464|   

Error: CPPCHECK_WARNING: [#def13]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/display-settings/scrollarea.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/keyboard-settings/xfce-keyboard-settings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-chooser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-chooser.c: scope_hint: In function ‘xfce_mime_chooser_get_app_info’
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-chooser.c:639:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/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.
/usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28: 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-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-chooser.c:31: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
/usr/include/gtk-3.0/gtk/gtkentry.h:49:42: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-chooser.c:635:36: note: in expansion of macro ‘GTK_ENTRY’
/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/gtk-3.0/gdk/gdkconfig.h:8: included_from: Included from here.
/usr/include/gtk-3.0/gdk/gdk.h:30: included_from: Included from here.
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-chooser.c:638:16: note: in expansion of macro ‘g_strdup’
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-chooser.c: scope_hint: In function ‘xfce_mime_chooser_get_app_info’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
#  637|           /* determine the path for the custom command */
#  638|           path = g_strdup (exec);
#  639|->         s = strchr (path, ' ');
#  640|           if (G_UNLIKELY (s != NULL))
#  641|               *s = '\0';

Error: CPPCHECK_WARNING: [#def17]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-helper-chooser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-helper-main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def20]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-helper.c:515:17: warning[unix.Malloc]: Use of memory after it is freed
#  513|   
#  514|         /* try to run the command */
#  515|->       succeed = g_spawn_async (NULL,
#  516|           argv,
#  517|           NULL,

Error: CPPCHECK_WARNING: [#def21]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mime-settings/xfce-mime-window.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

Error: CLANG_WARNING: [#def23]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mouse-settings/main.c:725:38: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
#  723|       {
#  724|           /* We use double internally, for whatever reason */
#  725|->         *val = (gdouble) (pdata[0].f + 1.0) * 5.0;
#  726|   
#  727|           return TRUE;

Error: CLANG_WARNING: [#def24]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mouse-settings/main.c:745:14: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  743|       if (mouse_settings_get_device_prop (xdisplay, device, prop_name, XA_INTEGER, 1, &pdata[0]))
#  744|       {
#  745|->         *val = (gboolean) (pdata[0].c);
#  746|   
#  747|           return TRUE;

Error: CLANG_WARNING: [#def25]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mouse-settings/main.c:1385:46: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1383|                       if (success)
# 1384|                       {
# 1385|->                         synaptics_two_scroll = (gint) pdata[0].c;
# 1386|                           synaptics_edge_scroll = (gint) pdata[1].c;
# 1387|                           synaptics_circ_scroll = -1; /* libinput does not expose this method */

Error: CLANG_WARNING: [#def26]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/dialogs/mouse-settings/main.c:1396:29: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 1394|                       if (success)
# 1395|                       {
# 1396|->                         if (!pdata[0].c)
# 1397|                               synaptics_two_scroll = -1;
# 1398|                           if (!pdata[1].c)

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

Error: CLANG_WARNING: [#def28]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfce4-settings-editor/xfce-settings-editor-box.c:1318:18: warning[deadcode.DeadStores]: Value stored to 'tooltip_text' during its initialization is never read
# 1316|       GValue       value         = { 0, };
# 1317|       gint         treemodel_idx = 0;
# 1318|->     const gchar *tooltip_text  = "";
# 1319|   
# 1320|       /* map view-index (0-3) to model-index (PROP_COLUMN_*) */

Error: CPPCHECK_WARNING: [#def29]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfce4-settings-editor/xfce-settings-prop-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfce4-settings-manager/xfce-settings-manager-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def31]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/accessibility.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/clipboard-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/clipboard-manager.c: scope_hint: In function ‘convert_clipboard’
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/clipboard-manager.c:679:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘conversions’
#  677|           g_slist_foreach (conversions, (GFunc) convert_clipboard_target, manager);
#  678|   
#  679|->         if (conversions->next == NULL &&
#  680|               ((IncrConversion *) conversions->data)->property == None) {
#  681|                   finish_selection_request (manager, xev, False);

Error: CPPCHECK_WARNING: [#def34]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/displays.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/keyboard-layout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

Error: CPPCHECK_WARNING: [#def37]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/pointers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def38]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/pointers.c:809:17: warning[deadcode.DeadStores]: Value stored to 'val' is never read
#  807|               {
#  808|                   /* only 1 items to set */
#  809|->                 val = value;
#  810|               }
#  811|               else if (G_VALUE_TYPE (value) == G_TYPE_PTR_ARRAY)

Error: CPPCHECK_WARNING: [#def39]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/workspaces.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/xsettings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def41]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/xsettings.c:846:17: warning[deadcode.DeadStores]: Value stored to 'needle' is never read
#  844|                   /* value length */
#  845|                   *(CARD32 *)needle = 0;
#  846|->                 needle += 4;
#  847|               }
#  848|               break;

Error: CLANG_WARNING: [#def42]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/xsettings.c:877:13: warning[deadcode.DeadStores]: Value stored to 'needle' is never read
#  875|   
#  876|               *(INT32 *)needle = num;
#  877|->             needle += 4;
#  878|               break;
#  879|   

Error: CLANG_WARNING: [#def43]
xfce4-settings-4.18.6-build/xfce4-settings-4.18.6/xfsettingsd/xsettings.c:893:13: warning[deadcode.DeadStores]: Value stored to 'needle' is never read
#  891|               *(CARD16 *)(needle + 4) = 0;
#  892|               *(CARD16 *)(needle + 6) = 0;
#  893|->             needle += 8;
#  894|               break;
#  895|   

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-111.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namexfce4-settings-4.18.6-1.fc41
store-results-to/tmp/tmp0p9z5dc5/xfce4-settings-4.18.6-1.fc41.tar.xz
time-created2024-07-03 18:30:20
time-finished2024-07-03 18:33:19
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp0p9z5dc5/xfce4-settings-4.18.6-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp0p9z5dc5/xfce4-settings-4.18.6-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9