Rustにはライフタイムを無限に延長できるバグがあり、それを使うとsafe Rustでもtransmute (任意のキャスト)もnull参照もuse after freeもできるということらしい。

https://fedibird.com/@matsuu/111980932666676130

https://github.com/Speykious/cve-rs/blob/main/src/lifetime_expansion.rs

https://github.com/rust-lang/rust/issues/25860

Reply to this note

Please Login to reply.

Discussion

oof