diff --git a/fuzz/fuzz_targets/allocate_deallocate.rs b/fuzz/fuzz_targets/allocate_deallocate.rs index a5eea4d..f4740c3 100644 --- a/fuzz/fuzz_targets/allocate_deallocate.rs +++ b/fuzz/fuzz_targets/allocate_deallocate.rs @@ -14,6 +14,7 @@ struct Input { enum AllocatorMethod { Allocate, Deallocate { index: usize }, + Reset, } fuzz_target!(|input: Input| { @@ -35,6 +36,10 @@ fuzz_target!(|input: Input| { ptrs[index] = None; } } + AllocatorMethod::Reset => { + unsafe { allocator.reset() }; + ptrs.clear(); + } } }