gtk+ r21540 - in trunk: . gtk



Author: rhult
Date: Mon Sep 29 10:41:07 2008
New Revision: 21540
URL: http://svn.gnome.org/viewvc/gtk+?rev=21540&view=rev

Log:
2008-09-29  Richard Hult  <richard imendio com>

	Bug 554141 â uninitialized data use/free in gtkclipboard-quartz.c

	* gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents):
	Patch from Jon A. Cruz to initialize the allocated selection data.


Modified:
   trunk/ChangeLog
   trunk/gtk/gtkclipboard-quartz.c

Modified: trunk/gtk/gtkclipboard-quartz.c
==============================================================================
--- trunk/gtk/gtkclipboard-quartz.c	(original)
+++ trunk/gtk/gtkclipboard-quartz.c	Mon Sep 29 10:41:07 2008
@@ -890,7 +890,7 @@
 
       length = [types count] * sizeof (GdkAtom);
       
-      selection_data = g_slice_new (GtkSelectionData);
+      selection_data = g_slice_new0 (GtkSelectionData);
       selection_data->selection = clipboard->selection;
       selection_data->target = target;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]