[gtk+/composite-templates] Protect pasteboard GtkTargetPair flag values from being out of range
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/composite-templates] Protect pasteboard GtkTargetPair flag values from being out of range
- Date: Fri, 14 Sep 2012 21:17:29 +0000 (UTC)
commit 10cc55fb52c8623d8a07d729268075211e902670
Author: John Ralls <jralls ceridwen us>
Date: Wed Aug 22 14:38:53 2012 -0700
Protect pasteboard GtkTargetPair flag values from being out of range
gtk/gtkquartz.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkquartz.c b/gtk/gtkquartz.c
index a6eb61b..557fa8a 100644
--- a/gtk/gtkquartz.c
+++ b/gtk/gtkquartz.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]