NEW 16323
Regexp functions fail silently when stack limit is exceeded
https://bugs.webkit.org/show_bug.cgi?id=16323
Summary Regexp functions fail silently when stack limit is exceeded
Eric Seidel (no email)
Reported 2007-12-06 01:14:12 PST
Regexp functions fail silently when stack limit is exceeded var re = new RegExp("(\cd{4,}|[(\u006c)]*?)*", "imy"); "foo".match(re); All this does is print: jsRegExpExecute failed with result -5 To the console. I would have expected it to throw an exception.
Attachments
David Kilzer (:ddkilzer)
Comment 1 2007-12-06 08:25:53 PST
What does Firefox or MSIE do in this case?
Darin Adler
Comment 2 2007-12-06 08:39:25 PST
Changing this will be very simple once we decide what behavior we want.
Eric Seidel (no email)
Comment 3 2007-12-06 16:21:30 PST
Actually this same regexp fails that way: var re = new RegExp("(a*)*"); "a".match(re); Which it shouldn't. This is a bug in our regexp correctness.
Note You need to log in before you can comment on or make changes to this bug.