From d6d360548f60014f0e2f6bcd2947a96a19f83289 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Thu, 25 Feb 2021 00:50:38 -0700 Subject: [PATCH] Disable only-ascii filter This was added to make reading easier; not because it's actually needed. --- fuzz/fuzz_targets/fuzz_patch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzz/fuzz_targets/fuzz_patch.rs b/fuzz/fuzz_targets/fuzz_patch.rs index d3f3b93..f4cdb6b 100644 --- a/fuzz/fuzz_targets/fuzz_patch.rs +++ b/fuzz/fuzz_targets/fuzz_patch.rs @@ -8,7 +8,7 @@ use std::process::Command; fuzz_target!(|x: (Vec, Vec, u8)| { let (from, to, context) = x; - if let Ok(s) = String::from_utf8(from.clone()) { + /*if let Ok(s) = String::from_utf8(from.clone()) { if !s.is_ascii() { return } if s.find(|x| x < ' ' && x != '\n').is_some() { return } } else { @@ -19,7 +19,7 @@ fuzz_target!(|x: (Vec, Vec, u8)| { if s.find(|x| x < ' ' && x != '\n').is_some() { return } } else { return - } + }*/ let diff = unified_diff::diff(&from, "a/fuzz.file", &to, "target/fuzz.file", context as usize); File::create("target/fuzz.file.original") .unwrap()