From 96b49ecdf79b4727020db2035f71b1522b4c33c6 Mon Sep 17 00:00:00 2001 From: Sean Stangl Date: Wed, 13 Mar 2013 12:36:47 -0700 Subject: [PATCH] Bug 850446 - Fix NULL deref in StartOffThreadIonCompile(). r=bhackett --- js/src/jsworkers.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/jsworkers.cpp b/js/src/jsworkers.cpp index 1eb9162f816..b9fd29aed99 100644 --- a/js/src/jsworkers.cpp +++ b/js/src/jsworkers.cpp @@ -30,6 +30,7 @@ js::StartOffThreadIonCompile(JSContext *cx, ion::IonBuilder *builder) if (!rt->workerThreadState->init(rt)) { js_delete(rt->workerThreadState); rt->workerThreadState = NULL; + return false; } } WorkerThreadState &state = *cx->runtime->workerThreadState;