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:
khanson%netscape.com 2002-03-20 05:45:12 +00:00
parent ed4482567a
commit 5bf172e81d

View File

@ -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];
/*