You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
re2 as safer opt-in regexp engine replacement ? #28642
I find it extremely bad - and a reason for people to criticize node - that developers can so easily make their applications vulnerable to that kind of DOS.
I'd say you're in the wrong bug tracker and that you need to take this up with the V8 team.
Irregexp is very tightly and deeply integrated with V8. Trying to replace it would be tantamount to maintaining a fork of V8 in perpetuity. We have a strong 'upstream first' policy so that's not going to fly.
Also I didn't see evidence of the V8 team saying they won't fix this, but that it's a low priority currently. Of course if someone considered it a higher priority and they submitted a fix for the issue, I'm sure V8 would be open to that.
It will be available without the l flag. the flag is a non-standard (and not exposed by default) option to make it throw if the non-backtracking engine can't be used.
Activity
bnoordhuis commentedon Jul 11, 2019
I'd say you're in the wrong bug tracker and that you need to take this up with the V8 team.
Irregexp is very tightly and deeply integrated with V8. Trying to replace it would be tantamount to maintaining a fork of V8 in perpetuity. We have a strong 'upstream first' policy so that's not going to fly.
mscdex commentedon Jul 11, 2019
Also I didn't see evidence of the V8 team saying they won't fix this, but that it's a low priority currently. Of course if someone considered it a higher priority and they submitted a fix for the issue, I'm sure V8 would be open to that.
bnoordhuis commentedon Jul 14, 2019
I'll go ahead and close this out as a wontfix.
kapouer commentedon Mar 17, 2021
For the record:
https://v8.dev/blog/non-backtracking-regexp
so eventually this will be available with a "l"inear regexp flag.
devsnek commentedon Mar 17, 2021
It will be available without the
lflag. the flag is a non-standard (and not exposed by default) option to make it throw if the non-backtracking engine can't be used.