Skip to content

Conversation

@mjp41
Copy link
Member

@mjp41 mjp41 commented Sep 25, 2024

Add an extra option to the heap to allow for deterministic reallocation of memory.

To detect certain ABA issues, we require memory to be reallocated quickly. In Asan this is not the case, as it delays reallocation to improve the chances of catching use-after-free bugs.

This takes advantage of the refactoring in #51 to enable an alternative heap implementation that is integrated with systematic testing to allow objects to be reused.

This will address #50.

[Note initially contains the changes for #51, but will be removed once that lands on main.]

@mjp41 mjp41 force-pushed the replay_allocators branch 3 times, most recently from 7ee9d21 to 2bc2acc Compare September 25, 2024 20:05
Asan delays reallocation to increase the likelyhood of catching a UAF.  This adds a simple free list allocator
that tries to reuse allocations quickly to increase the chance of an ABA problem being detected.
@mjp41 mjp41 force-pushed the replay_allocators branch from 4485f76 to 2deb47a Compare November 22, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant