Commit d6a55921 authored by John Ralls's avatar John Ralls

Protect pasteboard GtkTargetPair flag values from being out of range

parent 2cb739a2
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment