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
Looking at that method definition I think it should be marked as unsafe. I'm not sure why Rust doesn't automatically mark a function as unsafe if it uses an unsafe method, so perhaps i'm wrong about it.
I agree, it would be ideal to have this correctly reported.
In practice, it might not matter, because the ffi methods are an external interface for tooling that isn't in Rust- where rust's concept of safety won't apply anyway.
For example, the following safe program leads to pact_ffi performing Undefined Behavior:
Segmentation fault (core dumped)
In general it is unsound for a safe API to result in UB.
The text was updated successfully, but these errors were encountered: