Skip to content

Commit

Permalink
[CVE-2018-0762] 2 crashes : jscript9!JsJavascriptOperatorsPatchGetMet…
Browse files Browse the repository at this point in the history
…hodJsPolymorphicInlineCache - Palo Alto Networks, Inc.
  • Loading branch information
leirocks authored and Thomas Moore (CHAKRA) committed Jan 5, 2018
1 parent b0ff4cc commit 51a6b6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Runtime/Types/DynamicObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,12 @@ namespace Js

void DynamicObject::ChangeType()
{
AutoDisableInterrupt autoDisableInterrupt(this->GetScriptContext()->GetThreadContext());

Assert(!GetDynamicType()->GetIsShared() || GetTypeHandler()->GetIsShared());
this->type = this->DuplicateType();

autoDisableInterrupt.Completed();
}

void DynamicObject::ChangeTypeIf(const Type* oldType)
Expand Down

0 comments on commit 51a6b6a

Please sign in to comment.