[compiler-rt] [ASan] Fix crash in __asan_region_is_poisoned at application memory boundaries (PR #180223)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 00:35:34 PST 2026
================
@@ -270,6 +270,21 @@ extern "C" {
SANITIZER_INTERFACE_ATTRIBUTE int __asan_update_allocation_context(
void *addr);
+
+ // Used only for testing asan.
+ SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
+ void *__asan_test_only_get_low_mem_beg();
+ SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
+ void *__asan_test_only_get_low_mem_end();
----------------
vitalybuka wrote:
we should not expand interface just for test
there are asan option to dump memory layout, maybe print and parse that one?
https://github.com/llvm/llvm-project/pull/180223
More information about the llvm-commits
mailing list