diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-15 15:34:18 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-15 15:34:18 -0400 |
| commit | 7526549e5106dbdd043c6057833a6351d1693afc (patch) | |
| tree | 11c9ba505ec62bb7ea890df10589c5e84197841e /core/mem | |
| parent | 5e929b596dbabb2353adce6baabd4cb20a0cc290 (diff) | |
Disable usage of AddressSanitizer (pt. 2)
Diffstat (limited to 'core/mem')
| -rw-r--r-- | core/mem/allocators.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/mem/allocators.odin b/core/mem/allocators.odin index 1273c4c81..21e69c463 100644 --- a/core/mem/allocators.odin +++ b/core/mem/allocators.odin @@ -2448,8 +2448,8 @@ compat_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode, @(no_sanitize_address) get_unpoisoned_header :: #force_inline proc(ptr: rawptr) -> Header { header := ([^]Header)(ptr)[-1] - a := max(header.alignment, size_of(Header)) - sanitizer.address_unpoison(rawptr(uintptr(ptr)-uintptr(a)), a) + // a := max(header.alignment, size_of(Header)) + // sanitizer.address_unpoison(rawptr(uintptr(ptr)-uintptr(a)), a) return header } @@ -2468,7 +2468,7 @@ compat_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode, alignment = alignment, } - sanitizer.address_poison(raw_data(allocation), a) + // sanitizer.address_poison(raw_data(allocation), a) return case .Free: @@ -2499,7 +2499,7 @@ compat_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode, alignment = new_alignment, } - sanitizer.address_poison(raw_data(allocation), a) + // sanitizer.address_poison(raw_data(allocation), a) return case .Free_All: |