diff options
| author | Lucas Perlind <perlindluca@gmail.com> | 2025-04-24 15:10:58 +1000 |
|---|---|---|
| committer | Lucas Perlind <perlindluca@gmail.com> | 2025-04-24 15:17:51 +1000 |
| commit | ab0b26e876e1b77fe9272d0462b67786a2c761e3 (patch) | |
| tree | 81efecc50bf6a168d9e88c51dd8fc9caa2cab0a9 /src/checker.cpp | |
| parent | c7f9d2b1b78b5bad6c677bf649abafcc5c5270c1 (diff) | |
Add more asan support to the odin runtime and begin sanitizing
allocators
This adds various bindings to the asan runtime which can be used
to poison/unpoison memory handed out by various allocators. This
means we can catch use after free memory bugs when using operations
such as free_all during runtime.
Asan poisoning are added for the follow allocators in mem:
Arena (including temporary arenas)
Scratch
Stack
Small_Stack
Additionally a bug in the stack allocator was fixed to disallow freeing
in the middle of the stack (caught by the asan!).
I plan on adding support for all the allocators in core. This is just
a good starting point and were some of the easiest ones to implement
asan for.
Diffstat (limited to 'src/checker.cpp')
0 files changed, 0 insertions, 0 deletions