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 }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
The Regexp benchmark has an out-of-bounds error that results in checking
whether "undefined" matches some regular expression. The problem is that the
arrays s45 and s46 have a different length, but they are always used together,
assuming that their lengths are the same. As a result, line 77 passes
"undefined" to RegExp.exec(), which results in an array that contains the
string "undefined" multiple times.
The problem doesn't crash the benchmark but it's doing a nonsense computation.
To fix the problem, just change the number of variants in one of the two arrays
s45 and s46, so that they have the same length.
Attached is a patch with a fix.
Original issue reported on code.google.com by [email protected] on 5 Jun 2014 at 4:33
Original issue reported on code.google.com by
[email protected]
on 5 Jun 2014 at 4:33Attachments:
The text was updated successfully, but these errors were encountered: