Changeset 10059 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Aug 5, 2005, 1:44:40 PM (20 years ago)
Author:
ggaren
Message:

* empty log message *

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r10047 r10059  
     12005-08-05  Geoffrey Garen  <[email protected]>
     2
     3        Fix by darin, reviewed by me.
     4       
     5        - rolled in fix for: <rdar://problem/4161606> JavaScript regular
     6        expressions with certain ranges of Unicode characters cause a crash
     7
     8        Test cases added:
     9
     10        * layout-tests/fast/js/regexp-big-unicode-ranges-expected.txt: Added.
     11        * layout-tests/fast/js/regexp-big-unicode-ranges.html: Added.
     12
     13        * pcre/pcre.c:
     14        (compile_branch): added checks for characters > 255
     15
    1162005-08-04  Maciej Stachowiak  <[email protected]>
    217
  • trunk/JavaScriptCore/pcre/pcre.c

    r9452 r10059  
    11851185        goto FAILED;
    11861186        }
    1187 
     1187#if PCRE_UTF16
     1188      if (c > 255)
     1189        {
     1190        *errorptr = ERR33;
     1191        goto FAILED;
     1192        }
     1193#endif
     1194         
    11881195      /* Handle POSIX class names. Perl allows a negation extension of the
    11891196      form [:^name]. A square bracket that doesn't match the syntax is
     
    13211328          goto FAILED;
    13221329          }
    1323 
     1330#if PCRE_UTF16
     1331        if (d > 255)
     1332          {
     1333          *errorptr = ERR33;
     1334          goto FAILED;
     1335          }
     1336#endif
     1337       
    13241338        /* The second part of a range can be a single-character escape, but
    13251339        not any of the other escapes. Perl 5.6 treats a hyphen as a literal
Note: See TracChangeset for help on using the changeset viewer.