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
I experimented with different alternatives but would would you suggest as the cleanest solution?
As a rust crate the whole FFI module is not needed and should not be used.
To create the headers using cbindgen the mentioned function must be made public.
Thus, it appears also in the rust crate.
Gating it behind a feature flag makes it a bit harder to accidentally misuse it but in the end the UB could still end up in rust code.
Adding unsafe to all functions pleases clippy but should not extern "C" already imply that it is unsafe or contains potential UB?
For example, the following safe program leads to bp7 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: