mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Block recursion in AnalyzeNewScriptProperties, bug 657624.
This commit is contained in:
parent
e10c9c51e3
commit
534fc1b409
@ -3880,6 +3880,14 @@ AnalyzeNewScriptProperties(JSContext *cx, TypeObject *type, JSScript *script, JS
|
||||
* have been cleared).
|
||||
*/
|
||||
|
||||
if (initializerList->length() > 50) {
|
||||
/*
|
||||
* Bail out on really long initializer lists (far longer than maximum
|
||||
* number of properties we can track), we may be recursing.
|
||||
*/
|
||||
return false;
|
||||
}
|
||||
|
||||
ScriptAnalysis *analysis = script->analysis(cx);
|
||||
if (analysis && !analysis->ranInference())
|
||||
analysis->analyzeTypes(cx);
|
||||
|
Loading…
Reference in New Issue
Block a user