Closed Bug 1135773 Opened 10 years ago Closed 10 years ago

The cycle collector should not depend on QI nulling out the return value in case of failure

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

Details

Attachments

(1 file)

See the discussion in bug 723248. This could cause some weird crashes. The simplest thing to do is probably to just null out the return value before we call QI. That won't help if a QI intentionally mangles the return value in case of failure, but that seems unlikely. Bug 1135772 has some examples of QIs failing to null out the return value.
Attachment #8568242 - Flags: review?(bugs)
Attachment #8568242 - Flags: review?(bugs) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: