Skip to content

Commit f7b42a9

Browse files
committed
Remove always_validate for simplified version
1 parent a02afb4 commit f7b42a9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

examples/sample.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ fn main() {
7575
};
7676

7777
let input_file = input_file.map(PathBuf::from);
78-
afl_fuzz(uc, input_file, place_input_cb, exits, false, Some(1)).expect("fail to fuzz?")
78+
afl_fuzz(uc, input_file, place_input_cb, exits, Some(1)).expect("fail to fuzz?")
7979
}

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ pub fn afl_fuzz<'a, D: 'a>(
102102
input_file: Option<PathBuf>,
103103
place_input_cb: impl FnMut(&mut Unicorn<'a, UnicornFuzzData<D>>, &[u8], u64) -> bool + 'a,
104104
exits: Vec<u64>,
105-
always_validate: bool,
106105
persistent_iters: Option<u64>,
107106
) -> Result<(), uc_afl_ret> {
108107
afl_fuzz_custom(
@@ -114,7 +113,7 @@ pub fn afl_fuzz<'a, D: 'a>(
114113
target::dummy_uc_fuzz_callback,
115114
),
116115
exits,
117-
always_validate,
116+
false,
118117
persistent_iters,
119118
)
120119
}

0 commit comments

Comments
 (0)