2 ms·
You can segfault in rust, too: fn totally_safe() -> i32 { unsafe { *std::ptr::null() } } This commonly happens if the person who wrote 'totally safe'
by pasabagi 5y ago
You can segfault in rust, too:
fn totally_safe() -> i32 {
unsafe { *std::ptr::null() }
}
This commonly happens if the person who wrote 'totally safe' thinks what they're doing is fine, and it actually isn't.