Ignore:
Timestamp:
Jun 27, 2007, 11:53:45 PM (18 years ago)
Author:
kmccullo
Message:

JavaScriptCore:

Reviewed by Darin.

  • <rdar://problem/5271937> REGRESSION: Apparent WebKit JavaScript memory smasher when submitting comment to iWeb site (crashes in kjs_pcre_compile2)
  • Correctly evaluate the return value of _pcre_ucp_findchar.
  • pcre/pcre_compile.c: (compile_branch):
  • pcre/pcre_exec.c: (match):

LayoutTests:

Reviewed by Darin.

  • <rdar://problem/5271937> REGRESSION: Apparent WebKit JavaScript memory smasher when submitting comment to iWeb site (crashes in kjs_pcre_compile2)
  • Correctly evaluate the return value of _pcre_ucp_findchar.
  • fast/js/regexp-unicode-overflow-expected.txt: Added.
  • fast/js/regexp-unicode-overflow.html: Added.
  • fast/js/resources/regexp-unicode-overflow.js: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/pcre/pcre_compile.c

    r21200 r23846  
    21932193          int chartype;
    21942194          int othercase;
    2195           if (_pcre_ucp_findchar(c, &chartype, &othercase) >= 0 &&
     2195          if (_pcre_ucp_findchar(c, &chartype, &othercase) == ucp_L &&
    21962196               othercase > 0)
    21972197            {
Note: See TracChangeset for help on using the changeset viewer.