From 22a7547c85150d73eb94b6321487cae0d3cf8d2f Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Wed, 28 May 2025 16:20:46 +0200 Subject: [PATCH] JIT: Fix possible heap corruption in outlined composite SSA storage --- src/coreclr/jit/gentree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/jit/gentree.cpp b/src/coreclr/jit/gentree.cpp index 20645cbc3660f8..76660c67f26f42 100644 --- a/src/coreclr/jit/gentree.cpp +++ b/src/coreclr/jit/gentree.cpp @@ -30167,7 +30167,7 @@ unsigned* SsaNumInfo::GetOutlinedNumSlot(Compiler* compiler, unsigned index) con // Copy over all of the already encoded numbers. if (!baseNum.IsInvalid()) { - for (int i = 0; i < SIMPLE_NUM_COUNT; i++) + for (int i = 0; i < count; i++) { pFirstSlot[i] = baseNum.GetNum(compiler, i); }