Changeset 28186 in webkit


Ignore:
Timestamp:
Nov 29, 2007 4:49:31 AM (16 years ago)
Author:
eric@webkit.org
Message:

2007-11-29 Eric Seidel <eric@webkit.org>

Reviewed by Mark Rowe.

Fix for --guard crash of fast/js/regexp-charclass-crash introduced by r28151.

  • pcre/pcre_compile.cpp: (is_anchored):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r28185 r28186  
     12007-11-29  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Mark Rowe.
     4       
     5        Fix for --guard crash of fast/js/regexp-charclass-crash introduced by r28151.
     6
     7        * pcre/pcre_compile.cpp:
     8        (is_anchored):
     9
    1102007-11-28  Mark Rowe  <mrowe@apple.com>
    211
  • trunk/JavaScriptCore/pcre/pcre_compile.cpp

    r28183 r28186  
    20722072       
    20732073        /* Other brackets */
    2074         else if (op == OP_BRA || op == OP_ASSERT || op == OP_ONCE)
     2074        else if (op == OP_BRA || op == OP_ASSERT || op == OP_ONCE) {
    20752075            if (!is_anchored(scode, options, bracket_map, backref_map))
    20762076                return false;
     
    20782078        /* Check for explicit anchoring */
    20792079       
    2080         else if ((options & MatchAcrossMultipleLinesOption) || op != OP_CIRC)
     2080        } else if ((options & MatchAcrossMultipleLinesOption) || op != OP_CIRC)
    20812081            return false;
    20822082        code += getOpcodeValueAtOffset(code, 1);
Note: See TracChangeset for help on using the changeset viewer.