From c3a8061349619841c436cd3a11a382b66882f533 Mon Sep 17 00:00:00 2001 From: Sean Stangl Date: Tue, 25 Mar 2014 13:01:22 -0700 Subject: [PATCH] Bug 987947 - Check NewCompilerConstraintList() return. r=efaust --- js/src/jit/IonAnalysis.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/src/jit/IonAnalysis.cpp b/js/src/jit/IonAnalysis.cpp index facc1fa65af5..4faa30105f03 100644 --- a/js/src/jit/IonAnalysis.cpp +++ b/js/src/jit/IonAnalysis.cpp @@ -2178,6 +2178,9 @@ jit::AnalyzeNewScriptProperties(JSContext *cx, JSFunction *fun, const OptimizationInfo *optimizationInfo = js_IonOptimizations.get(Optimization_Normal); types::CompilerConstraintList *constraints = types::NewCompilerConstraintList(temp); + if (!constraints) + return false; + BaselineInspector inspector(script); const JitCompileOptions options(cx);