use std::arch::asm; use std::env; use std::process; use std::ptr; fn main() { unsafe { libc::signal(libc::SIGFPE, libc::SIG_DFL) }; let signal = env::args().nth(1).unwrap().trim().parse().unwrap(); process::exit(match signal { 8 => unsafe { asm!("xor ebx, ebx", "mov eax, $$0x200", "div ebx"); 1 }, 11 => unsafe { libc::strcmp(ptr::null(), ptr::null()) }, _ => 1, }); }