Skip to content

Commit

Permalink
CVE-2019-0829 Edge - Chakra JIT Type Confusion (case38) -
Browse files Browse the repository at this point in the history
  • Loading branch information
pleath authored and akroshg committed Apr 8, 2019
1 parent b481337 commit b03a961
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Runtime/Library/JavascriptRegExpConstructor.cpp
Expand Up @@ -360,6 +360,10 @@ namespace Js
EnsureValues(); // The last match info relies on the last input. Use it before it is changed.
this->lastInput = tempInput;
}

// Set implicit call flags since we are not necessarily making the original stored value available on re-load
// and are killing the store that backs two exposed properties.
this->GetScriptContext()->GetThreadContext()->AddImplicitCallFlags(ImplicitCall_Accessor);
*result = true;
return true;
case PropertyIds::lastMatch:
Expand Down

0 comments on commit b03a961

Please sign in to comment.