diff --git a/libafl_frida/src/cmplog_rt.rs b/libafl_frida/src/cmplog_rt.rs index 95b2193dd0..ab93bb67b1 100644 --- a/libafl_frida/src/cmplog_rt.rs +++ b/libafl_frida/src/cmplog_rt.rs @@ -19,7 +19,7 @@ impl CmpLogRuntime { } } - /// Call the external function that populates the cmplog_map with the relevant values + /// Call the external function that populates the `cmplog_map` with the relevant values extern "C" fn populate_lists(&mut self, op1: u64, op2: u64, retaddr: u64) { // println!( // "entered populate_lists with: {:#02x}, {:#02x}, {:#02x}", diff --git a/libafl_frida/src/lib.rs b/libafl_frida/src/lib.rs index 1b049e19b8..31063c899b 100644 --- a/libafl_frida/src/lib.rs +++ b/libafl_frida/src/lib.rs @@ -108,9 +108,8 @@ impl FridaOptions { } "cmplog" => { options.enable_cmplog = value.parse().unwrap(); - match cfg!(feature = "cmplog") { - false => panic!("cmplog feature is disabled!"), - _ => (), + if !cfg!(feature = "cmplog") && options.enable_cmplog { + panic!("cmplog feature is disabled!") } } _ => {