Skip to content

Commit

Permalink
Fix bug 389278: Add sanity check for backrefs to non-existing parenth…
Browse files Browse the repository at this point in the history
…eses
  • Loading branch information
hns committed Nov 19, 2011
1 parent 404235c commit c9005a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/org/mozilla/javascript/regexp/NativeRegExp.java
Expand Up @@ -1388,6 +1388,8 @@ such that Canonicalize(s[i]) is not the same character as
{
int len;
int i;
if (gData.parens == null || parenIndex >= gData.parens.length)
return false;
int parenContent = gData.parens_index(parenIndex);
if (parenContent == -1)
return true;
Expand Down

0 comments on commit c9005a1

Please sign in to comment.