Skip to content

Commit a8bc637

Browse files
authored
JIT: Fix possible heap corruption in outlined composite SSA storage (#116071)
1 parent 64e1ef0 commit a8bc637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/gentree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31633,7 +31633,7 @@ unsigned* SsaNumInfo::GetOutlinedNumSlot(Compiler* compiler, unsigned index) con
3163331633
// Copy over all of the already encoded numbers.
3163431634
if (!baseNum.IsInvalid())
3163531635
{
31636-
for (int i = 0; i < SIMPLE_NUM_COUNT; i++)
31636+
for (int i = 0; i < count; i++)
3163731637
{
3163831638
pFirstSlot[i] = baseNum.GetNum(compiler, i);
3163931639
}

0 commit comments

Comments
 (0)