mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
Patch 74900 for bug #131817 (OOM in AllocSrcNote causes crash in js_NewSrcNote). The patch was contributed by Steven Cole (scole@planetweb.com), sr=brendan, r=khanson, a=scc
This commit is contained in:
parent
ed4482567a
commit
5bf172e81d
@ -3933,6 +3933,8 @@ js_NewSrcNote(JSContext *cx, JSCodeGenerator *cg, JSSrcNoteType type)
|
||||
* incrementing cg->noteCount.
|
||||
*/
|
||||
index = AllocSrcNote(cx, cg);
|
||||
if (index < 0)
|
||||
return -1;
|
||||
sn = &cg->notes[index];
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user