Skip to content

Commit 32ee5de

Browse files
rajatdMSLaguana
authored andcommitted
[CVE-2018-0943]: Chakra Bug 15964039 - Unrestored bytecode register after bailout
1 parent 71d7b38 commit 32ee5de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Backend/Inline.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,11 +2089,11 @@ Inline::InlineBuiltInFunction(IR::Instr *callInstr, const FunctionJITTimeInfo *
20892089
callInstr->m_opcode = inlineCallOpCode;
20902090
SetupInlineInstrForCallDirect(builtInFunctionId, callInstr, argoutInstr);
20912091

2092+
WrapArgsOutWithCoerse(builtInFunctionId, callInstr);
2093+
20922094
// Generate ByteCodeArgOutCaptures and move the ArgOut_A/ArgOut_A_Inline close to the call instruction
20932095
callInstr->MoveArgs(/*generateByteCodeCapture*/ true);
20942096

2095-
WrapArgsOutWithCoerse(builtInFunctionId, callInstr);
2096-
20972097
inlineBuiltInEndInstr = callInstr;
20982098
}
20992099
else

0 commit comments

Comments
 (0)