Skip to content

Commit eb4b00b

Browse files
sethbrenithMSLaguana
authored andcommitted
[CVE-2018-8177] Edge - Speculative type confusion on PropertyString
Re-order PropertyString poisoning code
1 parent 23848b1 commit eb4b00b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Backend/Lower.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15260,13 +15260,14 @@ Lowerer::GenerateFastElemIStringIndexCommon(IR::Instr * instrInsert, bool isStor
1526015260
IR::IndirOpnd::New(indexOpnd, 0, TyMachPtr, m_func),
1526115261
LoadVTableValueOpnd(instrInsert, VTableValue::VtablePropertyString),
1526215262
Js::OpCode::BrNeq_A, notPropStrLabel, instrInsert);
15263-
InsertBranch(Js::OpCode::Br, propStrLoadedLabel, instrInsert);
1526415263

1526515264
if (!isStore)
1526615265
{
1526715266
InsertObjectPoison(indexOpnd, branchInstr, instrInsert);
1526815267
}
1526915268

15269+
InsertBranch(Js::OpCode::Br, propStrLoadedLabel, instrInsert);
15270+
1527015271
instrInsert->InsertBefore(notPropStrLabel);
1527115272

1527215273
branchInstr = InsertCompareBranch(

0 commit comments

Comments
 (0)