diff --git a/libafl_frida/src/asan_rt.rs b/libafl_frida/src/asan_rt.rs index 20f7682701..e0febf11cc 100644 --- a/libafl_frida/src/asan_rt.rs +++ b/libafl_frida/src/asan_rt.rs @@ -212,7 +212,7 @@ impl AsanRuntime { }; assert!(unsafe { getrlimit(RLIMIT_STACK, &mut stack_rlimit as *mut rlimit) } == 0); - stack_rlimit.rlim_max as usize + stack_rlimit.rlim_cur as usize } /// Get the maximum stack size for the current stack @@ -225,7 +225,7 @@ impl AsanRuntime { }; assert!(unsafe { getrlimit64(RLIMIT_STACK, &mut stack_rlimit as *mut rlimit64) } == 0); - stack_rlimit.rlim_max as usize + stack_rlimit.rlim_cur as usize } /// Determine the stack start, end for the currently running thread