[Wayland-bugs] [Bug 106122] Weston segfaults on startup if wl_display_create fails
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Apr 18 09:18:21 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=106122
Bug ID: 106122
Summary: Weston segfaults on startup if wl_display_create fails
Product: Wayland
Version: unspecified
Hardware: All
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: weston
Assignee: wayland-bugs at lists.freedesktop.org
Reporter: hobbitalastair at yandex.com
The call to wl_display_create does not check if the returned result is NULL,
which can happen (eg if epoll is not compiled into the kernel). This can cause
a segfault on startup.
See
https://github.com/wayland-project/weston/blob/42c0e14808bfd39e1a2eea34f43f0b5fe20fbb16/compositor/main.c#L1886,
and
https://github.com/wayland-project/wayland/blob/bf7cc6805396af8df3b40e10c63de701346c93dd/src/wayland-server.c#L1017
for an example of where wl_display_create may return NULL.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20180418/99a68eea/attachment.html>
More information about the wayland-bugs
mailing list