aboutsummaryrefslogtreecommitdiff
path: root/include/loop.h
diff options
context:
space:
mode:
authorFerdinand Bachmann <ferdinand.bachmann@yrlf.at>2025-03-21 18:35:36 +0100
committerSimon Ser <contact@emersion.fr>2025-04-13 23:40:56 +0200
commit240a69ad63ad36893132ab1187035654d9478436 (patch)
treeeae246cd4915db70ccc8160f112f2a29e460a64d /include/loop.h
parentab2e1f5817a8024366fcb02285c978c5fef7dae1 (diff)
server: recreate renderer in idle callback to avoid UAF
Destroying the wlr_renderer in a callback to its own renderer_lost event is unsafe due to wl_signal_emit*() still accessing it after it was destroyed. Delegate recreation of renderer to an idle callback and ensure that only one such idle callback is scheduled at a time by storing the returned event source.
Diffstat (limited to 'include/loop.h')
0 files changed, 0 insertions, 0 deletions