libffi-rs icon indicating copy to clipboard operation
libffi-rs copied to clipboard

Fix ClosureMutN soundness

Open tov opened this issue 4 years ago • 0 comments

Changes the argument of ClosureMutN::code_ptr to be &mut self instead of &self. This is an attempt to resolve the second check box of #34:

It erases mutability required to call closures (read: ClosureMutN can be called by shared reference)

tov avatar Dec 20 '21 17:12 tov