return
A example of Rust
#![no_main] use std::io::prelude::*; #[no_mangle] pub fn fuzz_target(data: *const u8, size: usize) -> i32 { // fuzzed code goes here let a=unsafe{*data}; let mut optional = Some(a); // This reads: "while `let` destructures `optional` into // `Some(i)`, evaluate the block (`{}`). Else `break`. while let Some(a) = optional { if a > 9 { optional = None; } else { optional = Some(a + 1); } } 0 }
Submit