From e7a06fb30c0b83f7a6724d33b886b156edbfd45a Mon Sep 17 00:00:00 2001 From: Dongjia Zhang Date: Tue, 5 Apr 2022 21:24:58 +0900 Subject: [PATCH] Fix unsafe bracket (#594) --- libafl_frida/src/executor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libafl_frida/src/executor.rs b/libafl_frida/src/executor.rs index c9f4c66a70..c145503845 100644 --- a/libafl_frida/src/executor.rs +++ b/libafl_frida/src/executor.rs @@ -83,9 +83,9 @@ where self.stalker.deactivate(); } #[cfg(unix)] - if unsafe { ASAN_ERRORS.is_some() && !ASAN_ERRORS.as_ref().unwrap().is_empty() } { - println!("Crashing target as it had ASAN errors"); - unsafe { + unsafe { + if ASAN_ERRORS.is_some() && !ASAN_ERRORS.as_ref().unwrap().is_empty() { + println!("Crashing target as it had ASAN errors"); libc::raise(libc::SIGABRT); } }