Weston segfaults on startup if wl_event_loop_add_timer fails
Submitted by hob..@..ex.com
Assigned to Wayland bug list
Link to original bug (#106129)
Description
Running weston with the headless backend will segfault if wl_event_loop_add_timer fails (eg if timerfd is not enabled in the kernel) since https://github.com/wayland-project/weston/blob/42c0e14808bfd39e1a2eea34f43f0b5fe20fbb16/libweston/compositor-headless.c#L160 never checks if the returned result is NULL.