updated uc rust bindings
MODIFY
unicorn_mode/UNICORNAFL_VERSION
unicorn_mode/UNICORNAFL_VERSION
-475921a8c8674242d41b07a9dbcca9b9005b7051
+0d82727f2b477de82fa355edef9bc158bd25d374

MODIFY
unicorn_mode/samples/speedtest/rust/src/main.rs
unicorn_mode/samples/speedtest/rust/src/main.rs
@@ -195,7 +195,7 @@ fn fuzz(input_file: &str) -> Result<(), uc_error> {
}
let place_input_callback =
- |mut uc: UnicornHandle<'_, _>, afl_input: &mut [u8], _persistent_round| {
+ |uc: &mut UnicornHandle<'_, _>, afl_input: &mut [u8], _persistent_round| {
// apply constraints to the mutated input
if afl_input.len() > INPUT_MAX as usize {
//println!("Skipping testcase with leng {}", afl_input.len());
@@ -209,7 +209,7 @@ fn fuzz(input_file: &str) -> Result<(), uc_error> {
// return true if the last run should be counted as crash
let crash_validation_callback =
- |_uc: UnicornHandle<'_, _>, result, _input: &[u8], _persistent_round| {
+ |_uc: &mut UnicornHandle<'_, _>, result, _input: &[u8], _persistent_round| {
result != uc_error::OK
};
@@ -217,9 +217,9 @@ fn fuzz(input_file: &str) -> Result<(), uc_error> {
let ret = uc.afl_fuzz(
input_file,
- Box::new(place_input_callback),
+ place_input_callback,
&end_addrs,
- Box::new(crash_validation_callback),
+ crash_validation_callback,
false,
1000,
);

MODIFY
unicorn_mode/unicornafl
unicorn_mode/unicornafl
-Subproject commit 475921a8c8674242d41b07a9dbcca9b9005b7051
+Subproject commit 0d82727f2b477de82fa355edef9bc158bd25d374

updated uc rust bindings