Closed wolffcm closed 1 year ago
BTW: another way to guard your FFI interfaces against all sorts of panics is catch_unwind
. Just use it within the top-level FFI method, try to downcast the FFI payload to String
and &'static str
(both are possible) and create your FFI error type from that.
An audit discovered a few places where we could be more rigorous about checking inputs for valid data. This PR addresses the issues and adds tests for them.