mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-07 02:58:22 +02: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.
(cherry picked from commit f70cc16c68)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2224>
This commit is contained in:
parent
852bf24683
commit
2be25deaa6
1 changed files with 2 additions and 0 deletions
|
|
@ -92,6 +92,8 @@ present_create_notifies(ClientPtr client, int num_notifies, xPresentNotify *x_no
|
|||
|
||||
added++;
|
||||
}
|
||||
|
||||
*p_notifies = notifies;
|
||||
return Success;
|
||||
|
||||
bail:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue