Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- let mut foo = 5u8; unsafe { let mut ptr = &mut foo as *mut _ as usize; ptr&=0b11<<62; *(ptr as *mut u8) }
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- Finished dev [unoptimized + debuginfo] target(s) in 0.91s
- Running `target/debug/playground`
- timeout: the monitored command dumped core
- /root/entrypoint.sh: line 8: 7 Segmentation fault timeout --signal=KILL ${timeout} "$@"
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment