forked from AuroraMiddleware/gtk
Bug 508601 - Copying from GTK+ applications causes crash
In GtkClipboardOwner pasteboard:provideDataForType do not call _gtk_quartz_set_selection_data_for_pasteboard() is selection_data.length is smaller than 0. The function relies on having a positive length, since it stores the length in a uint ...
This commit is contained in:
parent
5c73ebf54c
commit
875e6f4bdb
@ -110,6 +110,7 @@ struct _GtkClipboardClass
|
|||||||
info,
|
info,
|
||||||
clipboard->user_data);
|
clipboard->user_data);
|
||||||
|
|
||||||
|
if (selection_data.length >= 0)
|
||||||
_gtk_quartz_set_selection_data_for_pasteboard (clipboard->pasteboard,
|
_gtk_quartz_set_selection_data_for_pasteboard (clipboard->pasteboard,
|
||||||
&selection_data);
|
&selection_data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user