mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-06 23:28:19 +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. Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2204>
This commit is contained in:
parent
23e7de97c8
commit
f70cc16c68
1 changed files with 2 additions and 0 deletions
|
|
@ -99,6 +99,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