Closed Bug 620243 Opened 14 years ago Closed 7 years ago

PluginModuleChild::DeallocNPObject should handle d before freeing aNPObj

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: timeless, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: coverity)

Attachments

(1 file)

1955 PluginModuleChild::DeallocNPObject(NPObject* aNPObj)
1956 {
1957     if (aNPObj->_class && aNPObj->_class->deallocate) {
1958         aNPObj->_class->deallocate(aNPObj);
1959     } else {
this is a free:
1960         child::_memfree(aNPObj);
1961     }

and this is a potential use which scares coverity:
1963     NPObjectData* d = current()->mObjectMap.GetEntry(aNPObj);
1964     if (d->actor)
1965         d->actor->NPObjectDestroyed();
1966 
1967     current()->mObjectMap.RemoveEntry(aNPObj);
1968 }
Attached patch proposalSplinter Review
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #498668 - Flags: review?(bent.mozilla)
Comment on attachment 498668 [details] [diff] [review]
proposal

I don't think this is relevant any more.
Attachment #498668 - Flags: review?(bent.mozilla)
Does this still show up in Coverity runs?
I still have to get approved by an admin on the Coverity site for the Fx scan.
Flags: needinfo?(georg.fritzsche)
Flags: needinfo?(georg.fritzsche)
The problem in this bug has been refactored into bug 1195272, still existent and looking risky.
Assignee: timeless → continuation
Assignee: continuation → nobody
Status: ASSIGNED → NEW
Resolving old bugs which are likely not relevant any more, since NPAPI plugins are deprecated.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: