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:
Peter Hutterer 2026-05-06 11:45:15 +10:00 committed by Marge Bot
parent 23e7de97c8
commit f70cc16c68

View file

@ -99,6 +99,8 @@ present_create_notifies(ClientPtr client, int num_notifies, xPresentNotify *x_no
added++;
}
*p_notifies = notifies;
return Success;
bail: