⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 284623 in webkit


Ignore:
Timestamp:
Oct 21, 2021, 10:54:48 AM (5 years ago)
Author:
msaboff@apple.com
Message:

Add missing overflow check to DFGIntegerRangeOptimizationPhase::filterConstant()
https://bugs.webkit.org/show_bug.cgi?id=232058

Reviewed by Robin Morisset.

Added overflow check.

  • dfg/DFGIntegerRangeOptimizationPhase.cpp:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r284590 r284623  
     12021-10-21  Michael Saboff  <msaboff@apple.com>
     2
     3        Add missing overflow check to DFGIntegerRangeOptimizationPhase::filterConstant()
     4        https://bugs.webkit.org/show_bug.cgi?id=232058
     5
     6        Reviewed by Robin Morisset.
     7
     8        Added overflow check.
     9
     10        * dfg/DFGIntegerRangeOptimizationPhase.cpp:
     11
    1122021-10-20  Yusuke Suzuki  <ysuzuki@apple.com>
    213
  • trunk/Source/JavaScriptCore/dfg/DFGIntegerRangeOptimizationPhase.cpp

    r284585 r284623  
    569569        switch (other.m_kind) {
    570570        case Equal:
     571            if (differenceOverflows<int>(otherEffectiveRight, thisRight))
     572                return *this;
     573
    571574            // Return a version of *this that is Equal to other's constant.
    572575            return Relationship(m_left, m_right, Equal, otherEffectiveRight - thisRight);
Note: See TracChangeset for help on using the changeset viewer.