Skip to content

Commit

Permalink
[CVE-2018-8291] DictionaryPropertyDescriptor::CopyFrom missed copying…
Browse files Browse the repository at this point in the history
… some properties
  • Loading branch information
MSLaguana authored and Atul Katti committed Jul 10, 2018
1 parent 0cbed34 commit c322694
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Runtime/Types/DictionaryPropertyDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,13 @@ namespace Js
this->Setter = (descriptor.Setter == DictionaryPropertyDescriptor<TPropertyIndexFrom>::NoSlots) ? NoSlots : descriptor.Setter;
this->IsAccessor = descriptor.IsAccessor;

// Not strictly required, PreventFalseReference must always be 1
this->PreventFalseReference = descriptor.PreventFalseReference;
this->IsShadowed = descriptor.IsShadowed;

#if ENABLE_FIXED_FIELDS
this->IsInitialized = descriptor.IsInitialized;
this->IsOnlyOneAccessorInitialized = descriptor.IsOnlyOneAccessorInitialized;
this->IsFixed = descriptor.IsFixed;
this->UsedAsFixed = descriptor.UsedAsFixed;
#endif
Expand Down

0 comments on commit c322694

Please sign in to comment.