Skip to content

Commit

Permalink
[CVE-2017-11801] Out of bound read on deferred stub - Individual
Browse files Browse the repository at this point in the history
Disabling the creationg of deferred stubs. For precise capturing we can't get the information about symbol capturing for functions in deferred stubs with the current design. We will have to rethink the right design for this feature.
  • Loading branch information
aneeshdk authored and agarwal-sandeep committed Oct 10, 2017
1 parent 2a07ca6 commit 7b936e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Runtime/Base/FunctionBody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1912,8 +1912,9 @@ namespace Js
{
Assert(pnodeFnc->nop == knopFncDecl);

Recycler *recycler = GetScriptContext()->GetRecycler();
this->SetDeferredStubs(BuildDeferredStubTree(pnodeFnc, recycler));
// TODO: Disabling the creation of deferred stubs for now. We need to rethink the design again as the current behavior
// is not usable with precise capturing.
this->SetDeferredStubs(nullptr);
}

FunctionInfoArray ParseableFunctionInfo::GetNestedFuncArray()
Expand Down

0 comments on commit 7b936e2

Please sign in to comment.