Skip to content

Commit cfc68d5

Browse files
committed
Fix fuzzers' invokations
1 parent e028308 commit cfc68d5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

fuzz/fuzz_targets/fuzz_ed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::io::Write;
88
use std::process::Command;
99

1010
fn diff_w(expected: &[u8], actual: &[u8], filename: &str) -> Result<Vec<u8>, DiffError> {
11-
let mut output = ed_diff::diff(expected, actual)?;
11+
let mut output = ed_diff::diff(expected, actual, false, false, 8)?;
1212
writeln!(&mut output, "w {filename}").unwrap();
1313
Ok(output)
1414
}

fuzz/fuzz_targets/fuzz_normal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fuzz_target!(|x: (Vec<u8>, Vec<u8>)| {
2121
} else {
2222
return
2323
}*/
24-
let diff = normal_diff::diff(&from, &to);
24+
let diff = normal_diff::diff(&from, &to, false, false, 8);
2525
File::create("target/fuzz.file.original")
2626
.unwrap()
2727
.write_all(&from)

fuzz/fuzz_targets/fuzz_patch.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ fuzz_target!(|x: (Vec<u8>, Vec<u8>, u8)| {
2626
&to,
2727
"target/fuzz.file",
2828
context as usize,
29+
false,
30+
false,
31+
8,
2932
);
3033
File::create("target/fuzz.file.original")
3134
.unwrap()

0 commit comments

Comments
 (0)