Skip to content
Snippets Groups Projects
Commit b2b8dd62 authored by Paul Pu's avatar Paul Pu
Browse files

libweston: fix crash when a client binds to a destroyed output


When the head is already destroyed, its global resource still can be
accessible by the client, which leads to a UAF crash.

This sets the head's global resource's user data to null before the
head is destroyed, and when the `bind` request is being handled but the
object's user data is null, do what we do when the the head's output is
null.

Signed-off-by: default avatarPaul Pu <hui.pu@gehealthcare.com>
parent 5b356315
No related branches found
No related tags found
1 merge request!1664libweston: fix crash when a client binds to a destroyed output
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment