[compiler-rt] Poison last word of FakeFrame (PR #133689)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 23:04:52 PDT 2025
================
@@ -49,13 +49,6 @@ uint32_t unsigned_shift_base() {
return x;
}
-uint32_t array_bounds() {
- _BitInt(37) x[4];
- _BitInt(37) y = x[10];
- // CHECK: {{.*}}bit-int.c:[[#@LINE-1]]:19: runtime error: index 10 out of bounds for type
- return (uint32_t)y;
-}
-
uint32_t float_cast_overflow() {
float a = 100000000.0f;
_BitInt(7) b = (_BitInt(7))a;
----------------
vitalybuka wrote:
It will not prevent fake frame, but x[] will be followed by non-poisoned bytes of "something"
https://github.com/llvm/llvm-project/pull/133689
More information about the llvm-commits
mailing list