CLOSED INVALID15245
[S60] Browser crash in String.replace() with Japanese characters and RegExp containing "\s"
https://bugs.webkit.org/show_bug.cgi?id=15245
Summary [S60] Browser crash in String.replace() with Japanese characters and RegExp c...
Marcus Groeber
Reported 2007-09-20 10:25:39 PDT
I found that a webpage with the following code will reliably crash the browser with a KERN-EXEC 3 on my Nokia E90 (FW 07.24.0.3) and probably the N95 with latest firmware as well: <script> var str = "\u65e5\u672c\u8a9e"; document.write(str.replace(/\s/, '')); </script> This was not an issue in older browsers, and I can't reproduce it on the emulator (with the outdated S60WebKit revision that can still be compiled), so it seems like a fairly recent regression, perhaps related to changes in Unicode support for regexps? This sounds rather obscure, but is not quite as strange if you consider that this type of regexp is often used in "trim" functions to remove extra whitespace from all sorts of strings that might be thrown at it...
Attachments
David Kilzer (:ddkilzer)
Comment 1 2007-09-20 10:46:43 PDT
Does not affect ToT WebKit r25670.
Bradley Morrison
Comment 2 2008-04-09 11:31:56 PDT
Bulk update of s60 bugs - tagging and closing.
Bradley Morrison
Comment 3 2008-04-09 11:39:37 PDT
Bulk closing of all s60 platform bugs. Sorry for the noise!
Joel Parks
Comment 4 2011-03-21 11:53:38 PDT
re-purposing InTSW keyword for use by QtWebkit team
Note You need to log in before you can comment on or make changes to this bug.