mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 874948 - Fix string rooting hazards in matching code, r=terrence
This commit is contained in:
parent
31dc3e6280
commit
ce4368d4d0
@ -1714,7 +1714,7 @@ DoMatchLocal(JSContext *cx, RegExpStatics *res, Handle<JSLinearString*> linearSt
|
||||
}
|
||||
|
||||
static bool
|
||||
BuildGlobalMatchArray(JSContext *cx, JSString *matchesInput, const MatchPair &pair, size_t count,
|
||||
BuildGlobalMatchArray(JSContext *cx, HandleString matchesInput, const MatchPair &pair, size_t count,
|
||||
MutableHandleObject array)
|
||||
{
|
||||
JS_ASSERT(count <= JSID_INT_MAX); /* by max string length */
|
||||
@ -1735,7 +1735,7 @@ BuildGlobalMatchArray(JSContext *cx, JSString *matchesInput, const MatchPair &pa
|
||||
}
|
||||
|
||||
static bool
|
||||
DoMatchGlobal(JSContext *cx, RegExpStatics *res, JSLinearString *linearPtr, RegExpShared &re,
|
||||
DoMatchGlobal(JSContext *cx, RegExpStatics *res, Handle<JSLinearString*> linearPtr, RegExpShared &re,
|
||||
MutableHandleObject array)
|
||||
{
|
||||
size_t charsLen = linearPtr->length();
|
||||
|
Loading…
Reference in New Issue
Block a user