You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[crash] libobs: scene item destroyed after its source on group/scene teardown (UAF, Windows) #649
The log just before shows "source 'music grouped' destroyed" and "source 'hidden in group' destroyed", so the item's source was freed before the item.
Fixture: scenes MUSIC, GROUP (obs_scene_insert_group "Group" holding 'music grouped' and a hidden 'hidden in group'), NESTED (MUSIC), BOTH (GROUP). Teardown: obs_source_remove + obs_scene_release on BOTH, NESTED, GROUP, MUSIC, then obs_source_remove + obs_source_release on the 3 sources.
Linux does not show it (glibc does not poison freed memory); needs ASan/valgrind.
Plan: reproduce under ASan/valgrind, RED test test/cmocka/test_group_teardown_uaf.c, fix in libobs, GREEN.
Activity
zackees commentedon Oct 13, 2026
Claiming: this UAF. Plan: 1. RED cmocka test, 2. fix in libobs/obs-scene.c, 3. one PR.
test: Run test_group_teardown_uaf under xvfb-run on Linux
test: obs_shutdown frees core data while scene teardown is still queu…
libobs: Wait for the whole destroy chain in obs_shutdown (GREEN)