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)
Tracking
(Not tracked)
NEW
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.
Updated•12 years ago
|
Blocks: static_analyses
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•