[llvm-branch-commits] [HWASan] [compiler-rt] Add non_negative_pointers option to HWASan alloc (PR #191089)
Florian Mayer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 8 21:12:41 PDT 2026
================
@@ -91,3 +91,6 @@ HWASAN_FLAG(
"instead of choosing one dynamically."
"Tip: this can be combined with the compiler option, "
"-hwasan-mapping-offset, to optimize the instrumentation.")
+
+HWASAN_FLAG(bool, non_negative_pointers, false,
----------------
fmayer wrote:
`HwasanDeallocate` only sets memory tag, so it can be 8 bits
```
// Always store full 8-bit tags on free to maximize UAF detection
```
https://github.com/llvm/llvm-project/pull/191089
More information about the llvm-branch-commits
mailing list