[compiler-rt] [llvm] [ASan] Correctly handle vectorized pointer sub/cmp for `invalid-pointer-pair` (PR #213546)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 3 17:48:48 PDT 2026
================
@@ -0,0 +1,16 @@
+// RUN: %clangxx_asan -O2 %s -o %t -mllvm -asan-detect-invalid-pointer-pair
+
+// RUN: %env_asan_opts=detect_invalid_pointer_pairs=1:halt_on_error=0 %run %t
----------------
flovent wrote:
Well, i wanted to simplify the original case as much as possible, but i forget that it will be optimized in O2.
Now i make a new test case (calling `span_lengths` in main) and make sure it will crash before this PR.
But it seems some other things must affect `invalid-pointer-pair` in O2, it does not report for the same reported code in O0 even without vector.
https://github.com/llvm/llvm-project/pull/213546
More information about the llvm-commits
mailing list