xdg-desktop-portal-gnome-46.2-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/redhat-linux-build/src/shell-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/redhat-linux-build/src/xdg-desktop-portal-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/access.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/account.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def5]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/accountdialog.c: scope_hint: In function ‘file_chooser_response’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/accountdialog.c:128:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_get_file’ is deprecated
/usr/include/gtk-4.0/gtk/gtk.h:130: included_from: Included from here.
/usr/include/libadwaita-1/adwaita.h:9: included_from: Included from here.
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/accountdialog.c:5: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:119:22: note: declared here
#  126|     g_autofree char *path = NULL;
#  127|   
#  128|->   file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (widget));
#  129|     path = file ? g_file_get_path (file) : NULL;
#  130|   

Error: COMPILER_WARNING (CWE-477): [#def6]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/accountdialog.c: scope_hint: In function ‘image_button_clicked’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/accountdialog.c:159:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_dialog_new’ is deprecated
/usr/include/gtk-4.0/gtk/gtk.h:131: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooserdialog.h:39:12: note: declared here
#  157|     GtkFileFilter *filter;
#  158|   
#  159|->   chooser = gtk_file_chooser_dialog_new (_("Select an Image"),
#  160|                                            GTK_WINDOW (dialog),
#  161|                                            GTK_FILE_CHOOSER_ACTION_OPEN,

Error: COMPILER_WARNING (CWE-477): [#def7]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/accountdialog.c:168:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_set_default_response’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkappchooserdialog.h:31: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:43: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:157:6: note: declared here
#  166|     gtk_window_set_modal (GTK_WINDOW (chooser), TRUE);
#  167|   
#  168|->   gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK);
#  169|   
#  170|     filter = gtk_file_filter_new ();

Error: COMPILER_WARNING (CWE-477): [#def8]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/accountdialog.c:173:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_add_filter’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:136:22: note: declared here
#  171|     gtk_file_filter_set_name (filter, _("Images"));
#  172|     gtk_file_filter_add_pixbuf_formats (filter);
#  173|->   gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), filter);
#  174|   
#  175|     g_signal_connect (chooser, "response", G_CALLBACK (file_chooser_response), dialog);

Error: CPPCHECK_WARNING: [#def9]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/appchooser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def10]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/appchooser.c:243:38: warning[deadcode.DeadStores]: Although the value stored to 'a' is used in the enclosing expression, the value is never actually read from 'a'
#  241|       }
#  242|   
#  243|->   g_debug ("Updating choices: %s\n", a = g_strjoinv (", ", (char **)choices));
#  244|   
#  245|     app_chooser_dialog_update_choices (APP_CHOOSER_DIALOG (handle->dialog), choices);

Error: CPPCHECK_WARNING: [#def11]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/appchooserdialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/clipboard.c: scope_hint: In function ‘handle_selection_write’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/clipboard.c:262:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘out_fd_id’
#  260|   
#  261|   out:
#  262|->   xdp_impl_clipboard_complete_selection_write (object,
#  263|                                                  invocation,
#  264|                                                  out_fd_list,

Error: COMPILER_WARNING (CWE-457): [#def13]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/clipboard.c: scope_hint: In function ‘handle_selection_write’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/clipboard.c:262:3: warning[-Wmaybe-uninitialized]: ‘out_fd_id’ may be used uninitialized
#  262 |   xdp_impl_clipboard_complete_selection_write (object,
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  263 |                                                invocation,
#      |                                                ~~~~~~~~~~~
#  264 |                                                out_fd_list,
#      |                                                ~~~~~~~~~~~~
#  265 |                                                g_variant_new_handle (out_fd_id));
#      |                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/clipboard.c:214:7: note: ‘out_fd_id’ was declared here
#  214 |   int out_fd_id;
#      |       ^~~~~~~~~
#  260|   
#  261|   out:
#  262|->   xdp_impl_clipboard_complete_selection_write (object,
#  263|                                                  invocation,
#  264|                                                  out_fd_list,

Error: CLANG_WARNING: [#def14]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/clipboard.c:265:48: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  263|                                                  invocation,
#  264|                                                  out_fd_list,
#  265|->                                                g_variant_new_handle (out_fd_id));
#  266|     return TRUE;
#  267|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def15]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/clipboard.c: scope_hint: In function ‘handle_selection_read’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/clipboard.c:372:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd’
#  370|   
#  371|   out:
#  372|->   xdp_impl_clipboard_complete_selection_read (object, invocation, out_fd_list, fd);
#  373|     return TRUE;
#  374|   }

Error: CLANG_WARNING: [#def16]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/clipboard.c:372:3: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
#  370|   
#  371|   out:
#  372|->   xdp_impl_clipboard_complete_selection_read (object, invocation, out_fd_list, fd);
#  373|     return TRUE;
#  374|   }

Error: CPPCHECK_WARNING: [#def17]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/displaystatetracker.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/dynamic-launcher.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def19]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/dynamic-launcher.c: scope_hint: In function ‘handle_prepare_install’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/dynamic-launcher.c:255:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_new_with_buttons’ is deprecated
#  255 |   dialog = GTK_WINDOW (gtk_dialog_new_with_buttons (title,
#      |   ^~~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkappchooserdialog.h:31: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:43: included_from: Included from here.
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/dynamic-launcher.c:27: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:133:12: note: declared here
#  133 | GtkWidget* gtk_dialog_new_with_buttons (const char      *title,
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  253|   
#  254|     /* Show dialog with icon, title. */
#  255|->   dialog = GTK_WINDOW (gtk_dialog_new_with_buttons (title,
#  256|                                                       GTK_WINDOW (fake_parent),
#  257|                                                       dialog_flags,

Error: COMPILER_WARNING (CWE-477): [#def20]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/dynamic-launcher.c:264:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_get_content_area’ is deprecated
#  264 |   content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
#      |   ^~~~~~~~~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:172:13: note: declared here
#  172 | GtkWidget * gtk_dialog_get_content_area (GtkDialog *dialog);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  262|                                                       NULL));
#  263|   
#  264|->   content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
#  265|   
#  266|     box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);

Error: COMPILER_WARNING (CWE-477): [#def21]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/dynamic-launcher.c:290:3: warning[-Wdeprecated-declarations]: ‘gtk_image_set_from_pixbuf’ is deprecated: Use 'gtk_image_set_from_paintable' instead
#  290 |   gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gtk/gtkentry.h:40: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtktreeview.h:27: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkcombobox.h:26: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:94: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtkimage.h:95:6: note: declared here
#   95 | void gtk_image_set_from_pixbuf    (GtkImage        *image,
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
#  288|         goto err;
#  289|       }
#  290|->   gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf);
#  291|   
#  292|     entry = gtk_entry_new ();

Error: COMPILER_WARNING (CWE-477): [#def22]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/dynamic-launcher.c:315:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_set_default_response’ is deprecated
#  315 |   gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:157:6: note: declared here
#  157 | void gtk_dialog_set_default_response   (GtkDialog *dialog,
#      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  313|       }
#  314|   
#  315|->   gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
#  316|   
#  317|     window_group = gtk_window_group_new ();

Error: CPPCHECK_WARNING: [#def23]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def24]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c: scope_hint: In function ‘restore_last_folder’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:127:7: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_current_folder’ is deprecated
/usr/include/gtk-4.0/gtk/gtk.h:130: included_from: Included from here.
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:32: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:127:22: note: declared here
#  125|       {
#  126|         g_autoptr(GFile) last_folder = g_file_new_for_path (last_folder_path);
#  127|->       gtk_file_chooser_set_current_folder (filechooser, last_folder, NULL);
#  128|       }
#  129|   }

Error: COMPILER_WARNING (CWE-477): [#def25]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c: scope_hint: In function ‘save_last_folder’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:141:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_get_files’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:125:22: note: declared here
#  139|       return;
#  140|   
#  141|->   files = gtk_file_chooser_get_files (filechooser);
#  142|   
#  143|     for (guint i = g_list_model_get_n_items (files); i > 0; i--)

Error: COMPILER_WARNING (CWE-477): [#def26]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c: scope_hint: In function ‘get_uris’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:323:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_get_files’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:125:22: note: declared here
#  321|     guint i;
#  322|   
#  323|->   files = gtk_file_chooser_get_files (filechooser);
#  324|   
#  325|     for (i = 0; i < g_list_model_get_n_items (files); i++)

Error: COMPILER_WARNING (CWE-477): [#def27]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c: scope_hint: In function ‘update_choices’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:379:7: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_get_choice’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:182:22: note: declared here
#  377|       {
#  378|         const char *choice_id = l->data;
#  379|->       const char *value = gtk_file_chooser_get_choice (filechooser, choice_id);
#  380|   
#  381|         g_hash_table_replace (handle->choices, (gpointer)choice_id, (gpointer)value);

Error: COMPILER_WARNING (CWE-477): [#def28]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c: scope_hint: In function ‘file_chooser_response’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:413:7: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_get_filter’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:150:22: note: declared here
#  411|       case GTK_RESPONSE_OK:
#  412|         handle->response = 0;
#  413|->       handle->filter = gtk_file_chooser_get_filter (GTK_FILE_CHOOSER(widget));
#  414|         handle->uris = get_uris (GTK_FILE_CHOOSER (widget));
#  415|         save_last_folder (handle, GTK_FILE_CHOOSER (widget));

Error: COMPILER_WARNING (CWE-477): [#def29]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:419:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_get_choice’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:182:22: note: declared here
#  417|       }
#  418|   
#  419|->   read_only = gtk_file_chooser_get_choice (GTK_FILE_CHOOSER (widget), "read-only");
#  420|     handle->allow_write = g_strcmp0 (read_only, "false") == 0;
#  421|   

Error: COMPILER_WARNING (CWE-477): [#def30]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c: scope_hint: In function ‘deserialize_choice’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:474:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_add_choice’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:169:22: note: declared here
#  472|       }
#  473|   
#  474|->   gtk_file_chooser_add_choice (filechooser,
#  475|                                  choice_id, label,
#  476|                                  (const char **) options,

Error: COMPILER_WARNING (CWE-477): [#def31]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:478:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_choice’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:178:22: note: declared here
#  476|                                  (const char **) options,
#  477|                                  (const char **) option_labels);
#  478|->   gtk_file_chooser_set_choice (filechooser, choice_id, selected);
#  479|     g_hash_table_insert (handle->choices, (gpointer)choice_id, (gpointer)selected);
#  480|   }

Error: COMPILER_WARNING (CWE-477): [#def32]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c: scope_hint: In function ‘handle_open’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:596:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_dialog_new’ is deprecated
/usr/include/gtk-4.0/gtk/gtk.h:131: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooserdialog.h:39:12: note: declared here
#  594|     g_object_ref_sink (fake_parent);
#  595|   
#  596|->   dialog = GTK_WINDOW (gtk_file_chooser_dialog_new (arg_title, GTK_WINDOW (fake_parent), action,
#  597|                                                       cancel_label, GTK_RESPONSE_CANCEL,
#  598|                                                       accept_label, GTK_RESPONSE_OK,

Error: COMPILER_WARNING (CWE-477): [#def33]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:602:3: warning[-Wdeprecated-declarations]: ‘gtk_dialog_set_default_response’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkappchooserdialog.h:31: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:43: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:157:6: note: declared here
#  600|     gtk_window_set_modal (dialog, modal);
#  601|   
#  602|->   gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
#  603|     gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (dialog), multiple);
#  604|   

Error: COMPILER_WARNING (CWE-477): [#def34]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:603:3: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_select_multiple’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:98:22: note: declared here
#  601|   
#  602|     gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
#  603|->   gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (dialog), multiple);
#  604|   
#  605|     window_group = gtk_window_group_new ();

Error: COMPILER_WARNING (CWE-477): [#def35]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:646:11: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_add_filter’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:136:22: note: declared here
#  644|             filter = gtk_file_filter_new_from_gvariant (variant);
#  645|             filters = g_slist_append (filters, g_object_ref (filter));
#  646|->           gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter);
#  647|             g_variant_unref (variant);
#  648|           }

Error: COMPILER_WARNING (CWE-477): [#def36]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:663:11: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_filter’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:147:22: note: declared here
#  661|           {
#  662|             /* We are setting a single, unchangeable filter. */
#  663|->           gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (dialog), filter);
#  664|           }
#  665|         else

Error: COMPILER_WARNING (CWE-477): [#def37]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:684:19: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_filter’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:147:22: note: declared here
#  682|                 if (g_strcmp0 (name, current_filter_name) == 0)
#  683|                   {
#  684|->                   gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (dialog), f);
#  685|                     handled = TRUE;
#  686|                     break;

Error: COMPILER_WARNING (CWE-477): [#def38]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:701:11: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_current_folder’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:127:22: note: declared here
#  699|           {
#  700|             g_autoptr(GFile) file = g_file_new_for_path (path);
#  701|->           gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), file, NULL);
#  702|           }
#  703|       }

Error: COMPILER_WARNING (CWE-477): [#def39]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:715:15: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_file’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:121:22: note: declared here
#  713|             if (g_file_test (path, G_FILE_TEST_EXISTS))
#  714|               {
#  715|->               gtk_file_chooser_set_file (GTK_FILE_CHOOSER (dialog), file, NULL);
#  716|               }
#  717|             else

Error: COMPILER_WARNING (CWE-477): [#def40]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:721:15: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_current_folder’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:127:22: note: declared here
#  719|                 g_autoptr(GFile) folder = g_file_get_parent (file);
#  720|                 g_autofree char *name = g_file_get_basename (file);
#  721|->               gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), folder, NULL);
#  722|                 gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), name);
#  723|               }

Error: COMPILER_WARNING (CWE-477): [#def41]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:722:15: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_current_name’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:111:22: note: declared here
#  720|                 g_autofree char *name = g_file_get_basename (file);
#  721|                 gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), folder, NULL);
#  722|->               gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), name);
#  723|               }
#  724|           }

Error: COMPILER_WARNING (CWE-477): [#def42]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:728:13: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_current_name’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:111:22: note: declared here
#  726|           {
#  727|             if (g_variant_lookup (arg_options, "current_name", "&s", &current_name))
#  728|->             gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), current_name);
#  729|             if (g_variant_lookup (arg_options, "current_folder", "^&ay", &path))
#  730|               {

Error: COMPILER_WARNING (CWE-477): [#def43]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:732:15: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_current_folder’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:127:22: note: declared here
#  730|               {
#  731|                 g_autoptr(GFile) file = g_file_new_for_path (path);
#  732|->               gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), file, NULL);
#  733|               }
#  734|             else

Error: COMPILER_WARNING (CWE-477): [#def44]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:749:11: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_set_current_folder’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:127:22: note: declared here
#  747|           {
#  748|             g_autoptr(GFile) file = g_file_new_for_path (path);
#  749|->           gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), file, NULL);
#  750|           }
#  751|         else

Error: COMPILER_WARNING (CWE-477): [#def45]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:774:7: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_add_choice’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:169:22: note: declared here
#  772|     if (action == GTK_FILE_CHOOSER_ACTION_OPEN)
#  773|       {
#  774|->       gtk_file_chooser_add_choice (GTK_FILE_CHOOSER (dialog),
#  775|                                      "read-only",
#  776|                                      _("Open files read-only"),

Error: COMPILER_WARNING (CWE-477): [#def46]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/filechooser.c:781:7: warning[-Wdeprecated-declarations]: ‘gtk_file_chooser_add_choice’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooser.h:169:22: note: declared here
#  779|     else if (action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
#  780|       {
#  781|->       gtk_file_chooser_add_choice (GTK_FILE_CHOOSER (dialog),
#  782|                                      "read-only",
#  783|                                      _("Open directories read-only"),

Error: CPPCHECK_WARNING: [#def47]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/gnomescreencast.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def48]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/inputcapture.c:705:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'barrier_infos'
#  703|     if (!session)
#  704|       {
#  705|->       g_warning ("Tried to set pointer barriers on non-existing session %s", arg_session_handle);
#  706|         response = 2;
#  707|         goto out;

Error: CPPCHECK_WARNING: [#def49]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/print.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def50]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/print.c: scope_hint: In function ‘handle_prepare_print’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/print.c:659:7: warning[-Wdeprecated-declarations]: ‘gtk_dialog_get_widget_for_response’ is deprecated
/usr/include/gtk-4.0/gtk/deprecated/gtkappchooserdialog.h:31: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:43: included_from: Included from here.
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/print.c:28: included_from: Included from here.
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:160:12: note: declared here
#  657|     if (g_variant_lookup (arg_options, "accept_label", "&s", &accept_label))
#  658|       {
#  659|->       GtkWidget *button = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
#  660|         gtk_button_set_label (GTK_BUTTON (button), accept_label);
#  661|       }

Error: COMPILER_WARNING (CWE-457): [#def51]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/screencast.c: scope_hint: In function ‘serialize_screen_cast_streams_as_restore_data’
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/screencast.c:155:7: warning[-Wmaybe-uninitialized]: ‘stream_variant’ may be used uninitialized
#  155 |       g_variant_builder_add (impl_builder,
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  156 |                              "(uuv)",
#      |                              ~~~~~~~~
#  157 |                              info->id,
#      |                              ~~~~~~~~~
#  158 |                              info->type,
#      |                              ~~~~~~~~~~~
#  159 |                              stream_variant);
#      |                              ~~~~~~~~~~~~~~~
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/screencast.c:127:17: note: ‘stream_variant’ was declared here
#  127 |       GVariant *stream_variant;
#      |                 ^~~~~~~~~~~~~~
#  153|           }
#  154|   
#  155|->       g_variant_builder_add (impl_builder,
#  156|                                "(uuv)",
#  157|                                info->id,

Error: CPPCHECK_WARNING: [#def52]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/screencastgeometrycontainer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/screenshot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/settings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/shellintrospect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
xdg-desktop-portal-gnome-46.2-build/xdg-desktop-portal-gnome-46.2/src/xdg-desktop-portal-gnome.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-233.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namexdg-desktop-portal-gnome-46.2-1.fc41
store-results-to/tmp/tmpy19hy30y/xdg-desktop-portal-gnome-46.2-1.fc41.tar.xz
time-created2024-07-03 18:29:52
time-finished2024-07-03 18:32:06
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpy19hy30y/xdg-desktop-portal-gnome-46.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpy19hy30y/xdg-desktop-portal-gnome-46.2-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9