mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-20 05:23:43 +00:00
enabled persistent mode
This commit is contained in:
@ -206,6 +206,11 @@ fn fuzz(input_file: &str) -> Result<(), uc_error> {
|
|||||||
true
|
true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let crash_validation_callback =
|
||||||
|
|_uc: UnicornHandle<'_, _>, result, _input: &[u8], _persistent_round| {
|
||||||
|
result != uc_error::OK
|
||||||
|
};
|
||||||
|
|
||||||
let end_addrs = parse_locs("main_ends").unwrap();
|
let end_addrs = parse_locs("main_ends").unwrap();
|
||||||
|
|
||||||
let ret = uc.afl_fuzz(
|
let ret = uc.afl_fuzz(
|
||||||
@ -214,7 +219,7 @@ fn fuzz(input_file: &str) -> Result<(), uc_error> {
|
|||||||
&end_addrs,
|
&end_addrs,
|
||||||
Box::new(crash_validation_callback),
|
Box::new(crash_validation_callback),
|
||||||
false,
|
false,
|
||||||
1,
|
1000,
|
||||||
);
|
);
|
||||||
|
|
||||||
match ret {
|
match ret {
|
||||||
|
Reference in New Issue
Block a user