From 2e92a34494295f0ffe0d5b2eaf5b991448423579 Mon Sep 17 00:00:00 2001 From: s1341 Date: Sun, 26 Dec 2021 11:17:27 +0200 Subject: [PATCH] Reset total allocations on reset --- libafl_frida/src/alloc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libafl_frida/src/alloc.rs b/libafl_frida/src/alloc.rs index 22912881fa..f9c4ae2bb9 100644 --- a/libafl_frida/src/alloc.rs +++ b/libafl_frida/src/alloc.rs @@ -352,6 +352,8 @@ impl Allocator { for allocation in tmp_allocations { self.allocations.insert(allocation.address, allocation); } + + self.total_allocation_size = 0; } pub fn get_usable_size(&self, ptr: *mut c_void) -> usize {