Skip to content

Commit

Permalink
[CVE-2017-11870] Edge - Exploitable write-AV when writing to a slot o…
Browse files Browse the repository at this point in the history
…f a javascript null scope object. - Internal
  • Loading branch information
rajatd authored and leirocks committed Nov 12, 2017
1 parent 38a37ac commit b44ee83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Parser/Parse.cpp
Expand Up @@ -5194,6 +5194,10 @@ ParseNodePtr Parser::ParseFncDecl(ushort flags, LPCOLESTR pNameHint, const bool
bool isRedecl = false;
ParseNodePtr vardecl = CreateVarDeclNode(pnodeFnc->sxFnc.pnodeName->sxVar.pid, STVariable, false, nullptr, false, &isRedecl);
vardecl->sxVar.isBlockScopeFncDeclVar = true;
if (vardecl->sxVar.sym->GetIsFormal())
{
GetCurrentFunctionNode()->sxFnc.SetHasAnyWriteToFormals(true);
}
if (isRedecl)
{
vardecl->sxVar.sym->SetHasBlockFncVarRedecl();
Expand Down

0 comments on commit b44ee83

Please sign in to comment.