[Wayland-bugs] [Bug 751414] File descriptor leak in gdk_wayland_selection_request_target()
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jun 24 13:18:46 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=751414
--- Comment #19 from Carlos Garnacho <carlosg at gnome.org> ---
Created attachment 306050
--> https://bugzilla.gnome.org/attachment.cgi?id=306050&action=edit
wayland: protect against unknown mimetype requests
This oddly can be reproduced with weston+weston-dnd, when dragging
anything from GTK+ into weston-dnd, it will insist on picking its
custom application/x-wayland-dnd-flower mimetype, and this request
forwarded by the compositor, even if GTK+ didn't announce it on
its wl_data_source mimetype list. (What should probably happen here
is that the request is silenced, and/or weston-dnd picks (null))
This should be harmless, we are leaking though the fd in that case,
because the emission of GdkEventSelection on an unhandled mimetype
results in NOP. In order to avoid this, we should check whether the
mimetype is supported at all on the backend code and possibly close
the fd, this involves storing these in the first place.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20150624/7cbd1108/attachment.html>
More information about the wayland-bugs
mailing list