WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
23641
REGRESSION: Parsing octal escapes in regular expressions has changed
https://bugs.webkit.org/show_bug.cgi?id=23641
Summary
REGRESSION: Parsing octal escapes in regular expressions has changed
Erik Corry
Reported
2009-01-30 04:58:17 PST
I suspect this may be an unintentional WREC change. Safari used to do the same as IE on this one, now it doesn't. We are dealing with syntax that the standard deems incorrect, but no browser seems to throw a syntax error on it. Test JS: abc\0def\00pqr\000xyz\0000AB/.exec("abc\0def\00pqr\000xyz\0000AB") Old result was a string starting with "abc". New result is null. The problem is the interpretation of \0000
Attachments
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2009-01-30 06:39:05 PST
<
rdar://problem/6543257
>
Darin Adler
Comment 2
2009-03-12 14:18:05 PDT
Any evidence of real-world sites this affects?
Gavin Barraclough
Comment 3
2012-09-06 23:28:44 PDT
The new behaviour makes more sense (allowing an arbitrarily long string of zeros was plain odd!), we've been shipping this way for three years, and we match firefox. I don't think we want to change back to the old way.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug