Fix debug_child arg in forkserver_simple example (#489)

The `debug_child` command line argument presence was not properly checked,
so it couldn't be set to true. Hence it was not possible to print out
the content of the buffer sent to the harness while fuzzing.
This commit is contained in:
Sagittarius-a 2022-01-22 09:42:05 +01:00 committed by GitHub
parent 68ab473c85
commit 14959c7f9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ pub fn main() {
let mut fuzzer = StdFuzzer::new(scheduler, feedback, objective);
// If we should debug the child
let debug_child = res.value_of("debug_child").is_some();
let debug_child = res.is_present("debug_child");
// Create the executor for the forkserver
let args = match res.values_of("arguments") {