[Wayland-bugs] [Bug 74035] weston-launch freezes the system
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Feb 1 01:14:42 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=74035
Kristian Høgsberg <krh at bitplanet.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Kristian Høgsberg <krh at bitplanet.net> ---
commit 4d363cfcf6025db2277005845957e0b0e956ebd0
Author: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira at intel.com>
Date: Fri Jan 31 17:35:45 2014 +0200
input: Fix weston_seat_init_keyboard() error path
The pointer seat->keyboard was set before some possible error returns.
That pointer was left unchanged in case of failure, pointing to an
uninitialized keyboard struct (that was also leaked). If a client sent
a wl_seat::get_keyboard request, that would cause Weston to crash.
Fix this by setting the seat->keyboard pointer only after the keymap
initialization is done and there is no more possibilities for failure.
Also plug the memory leaks on the error path.
https://bugs.freedesktop.org/show_bug.cgi?id=74035
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20140201/70b840dd/attachment.html>
More information about the Wayland-bugs
mailing list