Disallow mutable shared references of non robust types in FFI #2800
Labels
iroha2-dev
The re-implementation of a BFT hyperledger in RUST
Security
This issue asks for improved security
At the moment mutable shared references of any
Transmute
type are allowed in FFI. This is a potential for UB if the receiver side of the FFI mutates the reference in such a way that it's set to a trap value. This should be disabled by default and only conditionally enabled via a new feature flagnon_robust_ref_mut
Check code before this comment.
The text was updated successfully, but these errors were encountered: