[clang] [UBSAN] add null, alignment and array-bounds checks (PR #190739)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 9 21:23:40 PDT 2026
================
@@ -101,8 +105,8 @@ __attribute__((noinline)) void test_misaligned_access(struct Small *dest, char *
// Array bounds: out-of-bounds on local array
// SHARED-LABEL: define {{[^@]*}}@test_local_array_oob
-// SHARED: call void @__ubsan_handle_out_of_bounds_abort
-// SHARED-NOT: call void @__ubsan_handle_type_mismatch_v1_abort
+// SHARED: call void @__ubsan_handle_out_of_bounds_abort(
----------------
hubert-reinterpretcast wrote:
The patch purports to fix an issue with array out-of-bounds checking, but the test updates do not meaningfully demonstrate a difference in that area.
Here, the conditions controlling the call are missing.
https://github.com/llvm/llvm-project/pull/190739
More information about the cfe-commits
mailing list