[compiler-rt] [asan] Detect dereferencing zero-alloc as heap buffer overflow (PR #155943)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 2 09:47:21 PDT 2025


thurstond wrote:

> It broke Mac too: https://green.lab.llvm.org/job/llvm.org/job/clang-stage1-RA/5301/testReport/junit/AddressSanitizer-x86_64-darwin/TestCases/zero_alloc_cpp/
> 
> Could it just include `<stdlib.h>` instead of `<malloc.h>`?
> 
> I'll mark it unsupported on mac for now.

Sorry for the breakage, and thanks for marking it unsupported for now.

I'll update it to use `<stdlib.h>`.

https://github.com/llvm/llvm-project/pull/155943


More information about the llvm-commits mailing list