Changeset 41849 in webkit for trunk/JavaScriptCore/pcre


Ignore:
Timestamp:
Mar 19, 2009, 5:52:04 PM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2009-03-19 Cameron Zwarich <[email protected]>

Reviewed by Geoff Garen.

Bug 23771: REGRESSION (r36016): JSObjectHasProperty freezes on global class without kJSClassAttributeNoAutomaticPrototype
<https://bugs.webkit.org/show_bug.cgi?id=23771>
<rdar://problem/6561016>

  • API/tests/testapi.c: (main): Add a test for this bug.
  • runtime/JSGlobalObject.cpp: (JSC::JSGlobalObject::resetPrototype): Don't set the prototype of the last object in the prototype chain to the object prototype when the object prototype is already the last object in the prototype chain.

LayoutTests:

2009-03-19 Geoffrey Garen <[email protected]>

Reviewed by Oliver Hunt.


Fixed <rdar://problem/6279213> Regular expression run-time complexity
limit too low for long inputs (21485)


Added a test for a complex regexp match that should succeed, and one
that should fail.

  • fast/js/regexp-overflow-expected.txt:
  • fast/js/resources/regexp-overflow.js:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/pcre/pcre_exec.cpp

    r41252 r41849  
    176176avoid spending exponential time on complex regular expressions. */
    177177
    178 static const unsigned matchLimit = 100000;
     178static const unsigned matchLimit = 1000000;
    179179
    180180#ifdef DEBUG
Note: See TracChangeset for help on using the changeset viewer.