Ignore:
Timestamp:
Oct 21, 2021, 10:54:48 AM (4 years ago)
Author:
[email protected]
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:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.