mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Protect pasteboard GtkTargetPair flag values from being out of range
This commit is contained in:
parent
2cb739a2d5
commit
d6a559216f
@ -101,6 +101,7 @@ _gtk_quartz_target_list_to_pasteboard_types (GtkTargetList *target_list)
|
||||
{
|
||||
GtkTargetPair *pair = list->data;
|
||||
gchar *target = gdk_atom_name (pair->target);
|
||||
g_return_val_if_fail (pair->flags < 16, NULL);
|
||||
[set addObject:target_to_pasteboard_type (target)];
|
||||
g_free (target);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user