mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 856796 - Attempt detection of YARR bug; r=till
This commit is contained in:
parent
4e65ef4452
commit
0ca496badd
@ -1009,6 +1009,12 @@ public:
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Avoid a topcrash before it occurs.
|
||||
if (!backTrack->lastContext) {
|
||||
ASSERT(!"Tripped Bug 856796!");
|
||||
return JSRegExpErrorInternal;
|
||||
}
|
||||
|
||||
resetMatches(term, context);
|
||||
popParenthesesDisjunctionContext(backTrack);
|
||||
freeParenthesesDisjunctionContext(context);
|
||||
@ -1055,6 +1061,12 @@ public:
|
||||
return JSRegExpMatch;
|
||||
}
|
||||
|
||||
// Avoid a topcrash before it occurs.
|
||||
if (!backTrack->lastContext) {
|
||||
ASSERT(!"Tripped Bug 856796!");
|
||||
return JSRegExpErrorInternal;
|
||||
}
|
||||
|
||||
// pop a match off the stack
|
||||
resetMatches(term, context);
|
||||
popParenthesesDisjunctionContext(backTrack);
|
||||
|
Loading…
Reference in New Issue
Block a user