Function afl::read_stdio_string
[−]
[src]
pub fn read_stdio_string<F>(closure: F) where
F: Fn(String),
Utility that reads a String
from standard input (stdin) and
passes it to closure
. If a String
cannot be constructed from
the data provided by standard input, closure
will not be
called. All panics that occur within closure
will be treated as
aborts. This is done so that AFL considers a panic to be a crash.
Examples
extern crate afl; fn main() { afl::read_stdio_string(|string| { Url::parse(&string) }) }