Skip to content
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
Loading
Loading
Loading
Pipeline #1333604 passed with stages
in 5 minutes and 56 seconds
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