rlbox icon indicating copy to clipboard operation
rlbox copied to clipboard

don't unregister callbacks automatically

Open deian opened this issue 5 years ago • 0 comments

In prio, we ran into a really awkward thing to debug:

tainted_prio<PrioNSSCtx*> nss = sandbox.malloc_in_sandbox<PrioNSSCtx>()
...
nss->NSS_IsInitialized = sandbox.register_callback(t_NSS_IsInitialized);  

eneded up getting unregister at the end of the function call.

We probably want to just manually do the unregistering and have a separate type for automatically unregistering callbacks.

deian avatar Jul 05 '20 23:07 deian