зеркало из https://github.com/mozilla/gecko-dev.git
Bug 584912: Fix use after free in jsd_DestroyThreadState. r=timeless, a=sayrer
This commit is contained in:
Родитель
6453babc66
Коммит
590cd322c2
|
@ -148,8 +148,8 @@ jsd_NewThreadState(JSDContext* jsdc, JSContext *cx )
|
|||
* is not enabled for debugging, fail the entire thread state.
|
||||
*/
|
||||
JS_INIT_CLIST(&jsdthreadstate->links);
|
||||
jsd_DestroyThreadState(jsdc, jsdthreadstate);
|
||||
JS_EndRequest(jsdthreadstate->context);
|
||||
jsd_DestroyThreadState(jsdc, jsdthreadstate);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче