GNOME Bugzilla – Bug 738314
Avoid crash if SelectionRequest gets through external means
Last modified: 2014-10-10 17:39:06 UTC
On bug #738312 I've been playing with X11/wayland clipboard interoperation. These patches however make gnome-shell crash whenever a SelectionRequest event is received, but no text is stored. I'm attaching a simple patch to bail out on handling SelectionRequest if there is no text.
Created attachment 288242 [details] [review] st: Bail out on clipboard requests if there is no text. If a selection request happens through foreign means, the selected text is NULL, and a crash happens.
Review of attachment 288242 [details] [review]: Looks good to me.
Attachment 288242 [details] pushed as eaec459 - st: Bail out on clipboard requests if there is no text.