-
Notifications
You must be signed in to change notification settings - Fork 383
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
Panic using regex split on a unicode string #212
Comments
Maybe connected (although with ASCII strings so 🤷♂️ ) we had this panic but we can't reproduce it or find out what made it and unfortunately, the stacktrace is ... cut :( . This was with beb0a9a and we have some doubts it was due to the latest cache changes then, but my investigation didn't help and this is the primary reason for me ... fuzzing regexes in goja :D
|
Raised dlclark/regexp2#34. I think it's very likely that the second panic has the same cause. |
"000\xfd00000000000000".split(/((?:0*)+?(?:.*)+?)?/g
Panics with:
This is with the latest versions of both goja and regexp2, but it happens with the previous versions as well. It does not happen with an ASCII string.
"000\xfd00000000000000".split(/((?:0*)+?(?:0*)+?)?/g)
panics withpanic: runtime error: slice bounds out of range [4:2]
.The text was updated successfully, but these errors were encountered: