Bug 330352: very non-greedy regexp causes crash in jsregexp.c, r=mrbkap

git-svn-id: svn://10.0.0.236/trunk@222270 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
crowder%fiverocks.com
2007-03-23 16:13:06 +00:00
parent 8ac207ff45
commit 0d7dfc3f74

View File

@@ -2872,6 +2872,9 @@ ExecuteREBytecode(REGlobalData *gData, REMatchState *x)
cap = &x->parens[parenIndex];
cap->length = x->cp - (gData->cpbegin + cap->index);
op = (REOp) *pc++;
if (!result)
result = x;
continue;
case REOP_ASSERT: