Skip to content

Commit b481337

Browse files
pleathakroshg
authored andcommitted
CVE-2019-0861 Chakra JIT Type Confusion 2 14 for Edge Bounty
1 parent 9a9ece6 commit b481337

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Runtime/Language/JavascriptOperators.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9582,6 +9582,11 @@ using namespace Js;
95829582

95839583
Var result = CALL_ENTRYPOINT(threadContext, marshalledFunction->GetEntryPoint(), function, CallInfo(flags, 2), thisVar, putValue);
95849584
Assert(result);
9585+
9586+
// Set implicit call flags so we bail out if we're trying to propagate the stored value forward. We can't count on the getter/setter
9587+
// to produce the stored value on a LdFld.
9588+
threadContext->AddImplicitCallFlags(ImplicitCall_Accessor);
9589+
95859590
return nullptr;
95869591
});
95879592
}

0 commit comments

Comments
 (0)