mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 660670: Report an error on OOM in Parser::analyzeFunction (r=jimb)
This commit is contained in:
parent
08fcb0b61d
commit
118bf3fdae
@ -2193,8 +2193,10 @@ bool
|
||||
Parser::markFunArgs(JSFunctionBox *funbox)
|
||||
{
|
||||
JSFunctionBoxQueue queue;
|
||||
if (!queue.init(functionCount))
|
||||
if (!queue.init(functionCount)) {
|
||||
js_ReportOutOfMemory(context);
|
||||
return false;
|
||||
}
|
||||
|
||||
FindFunArgs(funbox, -1, &queue);
|
||||
while ((funbox = queue.pull()) != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user