mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-15 05:23:40 +00:00
present: actually return the created notifies
present_create_notifies() creates an array of notifies but never returns them to the caller, despite them being passed individually to present_add_window_notify(). The caller proceeds with a NULL notifies array, eventually causing an OOB in present_vblank_notify() when vblank->notifies is NULL. Reported-by: Feng Ning, Innora Pte. Ltd. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2204> Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
cfc1df1321
commit
ca9d4cd3e8
1 changed files with 2 additions and 0 deletions
|
|
@ -101,6 +101,8 @@ present_create_notifies(ClientPtr client, int num_notifies, xPresentNotify *x_no
|
|||
|
||||
added++;
|
||||
}
|
||||
|
||||
*p_notifies = notifies;
|
||||
return Success;
|
||||
|
||||
bail:
|
||||
|
|
|
|||
Loading…
Reference in a new issue