Status: New Owner: ---- New issue 287 by [email protected]: Long, complex regexp pattern (in WebKit layout test) hangs http://code.google.com/p/v8/issues/detail?id=287
From http://trac.webkit.org/browser/trunk/LayoutTests/fast/js/resources/regexp- overflow.js (also running in Chromium, where the error was seen, and attached below): ---------------- var complexPattern = ""; for (var i = 0; i < 18; ++i) complexPattern += "a?"; for (var i = 0; i < 18; ++i) complexPattern += "a"; complexPattern = "(" + complexPattern + ")"; var complexInput = ""; for (var i = 0; i < 18; ++i) complexInput += "a"; shouldBe('new RegExp(complexPattern + complexPattern).exec(complexInput + complexInput)', 'null'); // Too big ---------------- On a trunk build of Chromium, that last line causes the tab to hang. This snippet was added to that layout test in WebKit r41849, before which the test passed in Chromium. Likewise, the whole test loads (but gets different results) in the current release version of Chromium (0.4.154.29). Attachments: regexp-overflow.js 2.2 KB -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
