Prevent temp arena scribbling from causing an asan warning. #1825

This commit is contained in:
Christoffer Lerno
2025-01-13 16:58:55 +01:00
parent 70606a2bbe
commit 4cb984e56d
2 changed files with 2 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ fn void TempAllocator.reset(&self, usz mark) @dynamic
usz cleaned = self.used - mark;
if (cleaned > 0)
{
$if env::COMPILER_SAFE_MODE:
$if env::COMPILER_SAFE_MODE && !env::ADDRESS_SANITIZER:
self.data[mark : cleaned] = 0xAA;
$endif
asan::poison_memory_region(&self.data[mark], cleaned);

View File

@@ -82,6 +82,7 @@
- Do not link "ld" on Linux with no libc.
- Fix bug when multiple `$else` clauses followed an `$if` #1824.
- Report the correct type as not having a method when access fails #1828.
- Prevent temp arena scribbling from causing an asan warning. #1825
### Stdlib changes
- Increase BitWriter.write_bits limit up to 32 bits.