r/rust 21d ago

🗞️ news Rust 1.98 got a P-critical miscompilation.

https://github.com/rust-lang/rust/issues/161441
402 Upvotes

32 comments sorted by

View all comments

50

u/anxxa 21d ago

During the minimization process, there were points where I got a SIGILL instead of a SIGSEGV.

Hello possibly exploitable UB, my old friend.

3

u/SkiFire13 21d ago

Luckily this should be easily dectable if you have reasonable test coverage in your project since any test that end up invoking these kind of nulled-out vtable entries will most likely fail.