Skip to content

Commit 0eb433a

Browse files
JIT: Fix possible heap corruption in outlined composite SSA storage (#116132)
Co-authored-by: Jakob Botsch Nielsen <[email protected]>
1 parent 397ee5f commit 0eb433a

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
@@ -30167,7 +30167,7 @@ unsigned* SsaNumInfo::GetOutlinedNumSlot(Compiler* compiler, unsigned index) con
3016730167
// Copy over all of the already encoded numbers.
3016830168
if (!baseNum.IsInvalid())
3016930169
{
30170-
for (int i = 0; i < SIMPLE_NUM_COUNT; i++)
30170+
for (int i = 0; i < count; i++)
3017130171
{
3017230172
pFirstSlot[i] = baseNum.GetNum(compiler, i);
3017330173
}

0 commit comments

Comments
 (0)