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

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.

svn path=/trunk/; revision=21540
This commit is contained in:
Richard Hult 2008-09-29 10:41:07 +00:00 committed by Richard Hult
parent 3f8d98b94d
commit b29d3d4082
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
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.
2008-09-27 Matthias Clasen <mclasen@redhat.com>
Bug 339367 Incorrect spotlocation

View File

@ -890,7 +890,7 @@ gtk_clipboard_wait_for_contents (GtkClipboard *clipboard,
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;