Open Bug 772601 Opened 12 years ago Updated 2 years ago

Create a static analysis to determine callers which hold on to an XPCOM interface without addrefing it and call more than one function on it

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
macOS
defect

Tracking

(Not tracked)

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

(Keywords: sec-want)

See bug 772282 as an example of a crash resulting in this.  If the caller doesn't AddRef, it cannot be sure that the first function call which takes the interface pointer as an argument won't destroy the object, so the subsequent calls on that are going to be unsafe.
Keywords: sec-want
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.