Open Bug 772601 Opened 8 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

(Firefox Build System :: Source Code Analysis, defect)

x86
macOS
defect
Not set

Tracking

(Not tracked)

People

(Reporter: ehsan, 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
You need to log in before you can comment on or make changes to this bug.