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
bug: obs-properties: parameter destructor observes its replacement #1938
rust/obs-properties/src/ffi/obs_properties.rs:193-195 calls props::set_param, storing the replacement, before running the previous parameter's destroy callback. libobs/obs-properties.c.h:215-219 runs that callback before assigning the replacement.
Class
Callback ordering / C API compatibility regression.
How it is reached
A local plugin registers a properties parameter with a destructor retaining the properties handle. On replacement, obs_properties_get_param inside that destructor sees the new parameter in Rust and the old parameter in C. Callbacks may query and modify properties and run without a RefCell borrow. Only trusted local plugin callbacks are involved.
Proposed fix and failing test
Run the old callback without an active RefCell borrow before installing the replacement. Add a regression to the existing core-state executable and compare the same callback-time state with the unchanged C oracle. Cover non-null and null replacements, changes to properties flags from the callback, and final parameter/destructor ownership. Public headers and existing C tests remain unchanged.
Add a callback-time regression against the Rust C ABI and unchanged C oracle and reproduce RED on DESKTOP-3FLAOFG.
Preserve C's destruction order with a minimal fix, verify GREEN and the surrounding properties suite, then open a focused PR against master.
First PR expected in this work session.
Activity
ProtonDev-sys commentedon Oct 23, 2026
Claiming: #1938.
First PR expected in this work session.