mirror of
https://github.com/X11Libre/xserver.git
synced 2026-12-01 08:00:28 +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>
This commit is contained in:
parent
2a4aaf76d2
commit
fa42eeda5c
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