Closed Bug 565595 Opened 10 years ago Closed 10 years ago

glob is used uninitialized in XPCJSContextStack::GetSafeJSContext when JS_NewContext fails

Categories

(Core :: XPConnect, defect, major)

defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

(Blocks 1 open bug, )

Details

(Keywords: coverity)

Attachments

(1 file)

739 bytes, patch
jorendorff
: review+
Details | Diff | Splinter Review
223 XPCJSContextStack::GetSafeJSContext(JSContext * *aSafeJSContext)
225     if(!mSafeJSContext)
254             mSafeJSContext = JS_NewContext(rt, 8192);
255             if(mSafeJSContext)
286             }
287             if(!glob && mSafeJSContext)
Attached patch patchSplinter Review
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #445068 - Flags: review?(jorendorff)
Attachment #445068 - Flags: review?(jorendorff) → review+
http://hg.mozilla.org/mozilla-central/rev/6dd2f4c19800
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.