From 890245c229ca79870dfbe15c06d886e8fdb85d17 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Sat, 14 Jun 2025 08:20:42 -0400 Subject: [PATCH] mem: Don't unpoison the header of a `Stack` allocation --- core/mem/allocators.odin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/mem/allocators.odin b/core/mem/allocators.odin index 4002f6b17..fdf969b6b 100644 --- a/core/mem/allocators.odin +++ b/core/mem/allocators.odin @@ -921,7 +921,7 @@ This procedure allocates `size` bytes of memory, aligned to the boundary specified by `alignment`. The allocated memory is not explicitly zero-initialized. This procedure returns the slice of the allocated memory. */ -@(require_results) +@(require_results, no_sanitize_address) stack_alloc_bytes_non_zeroed :: proc( s: ^Stack, size: int, @@ -945,7 +945,6 @@ stack_alloc_bytes_non_zeroed :: proc( s.curr_offset += padding next_addr := curr_addr + uintptr(padding) header := (^Stack_Allocation_Header)(next_addr - size_of(Stack_Allocation_Header)) - sanitizer.address_unpoison(header) header.padding = padding header.prev_offset = old_offset s.curr_offset += size