Skip to content

Commit

Permalink
[CVE-2018-8513] Type confusion after converting accessor property to …
Browse files Browse the repository at this point in the history
…data
  • Loading branch information
pleath authored and Thomas Moore (CHAKRA) committed Oct 8, 2018
1 parent cd84a0b commit 8997c70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Runtime/Types/PathTypeHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,9 @@ namespace Js
if (!(attributes[descriptor->GetDataPropertyIndex<false>()] & ObjectSlotAttr_Accessor))
{
// Setter without a getter; this is a stale entry, so ignore it
// Just consume the slot so no descriptor refers to it.
Assert(i == newTypeHandler->nextPropertyIndex);
::Math::PostInc(newTypeHandler->nextPropertyIndex);
continue;
}
Assert(oldTypeHandler->GetSetterSlotIndex(descriptor->GetDataPropertyIndex<false>()) == newTypeHandler->nextPropertyIndex);
Expand Down

0 comments on commit 8997c70

Please sign in to comment.