-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RegExp parsing fails on character classes which contain a match for NUL character #560
Comments
Tracked down the offending regexp:
Can get the same result with ./v7 -e '/[\x00]/' Updating ticket title to reflect real bug. |
I was able to locate the error message, and piece out that slre_compile is returning SLRE_MALFORMED_CHARSET, which implies to me that the escapes are getting preprocessed somewhere? I don't know how to run a debugger in C, so that's about as far as I got, since I got no stack. |
I've encountered this today as well.. |
Seems to come down to the fact that "Rune" is a uint_16 and slre_env uses slre_env->curr_rune == 0 as an error flag. |
Another RX that throws SLRE_MALFORMED_CHARSET:
|
Attached jslint.js (zipped)jslint.js.zipVersion: ea633dd
Steps to reproduce:
Run jslint.js: ./v7 ../jslint.jsExpected: About
35088ms wait, no output, no errorsActual:
354ms wait, no output, following error:Exec error [bilded/fixture/jslint.js]: "Invalid regex"
undefined
The text was updated successfully, but these errors were encountered: