Skip to content

Commit b03a961

Browse files
pleathakroshg
authored andcommitted
CVE-2019-0829 Edge - Chakra JIT Type Confusion (case38) -
1 parent b481337 commit b03a961

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Runtime/Library/JavascriptRegExpConstructor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ namespace Js
360360
EnsureValues(); // The last match info relies on the last input. Use it before it is changed.
361361
this->lastInput = tempInput;
362362
}
363+
364+
// Set implicit call flags since we are not necessarily making the original stored value available on re-load
365+
// and are killing the store that backs two exposed properties.
366+
this->GetScriptContext()->GetThreadContext()->AddImplicitCallFlags(ImplicitCall_Accessor);
363367
*result = true;
364368
return true;
365369
case PropertyIds::lastMatch:

0 commit comments

Comments
 (0)