Dereference after null check in PrintPreviewUserEventSuppressor::HandleEvent(Event*)
Categories
(Core :: Layout, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: andi, Assigned: jwatt, Mentored)
Details
(Keywords: good-first-bug, Whiteboard: CID 96529)
Attachments
(1 file)
Our Coverity Static Analysis tool implies that a potential Dereference after null check
occurs in PrintPreviewUserEventSuppressor::HandleEvent(Event*)
for variable aEvent
.
The nullity of the variable is checked here, thus presuming it can be null and it's passed without nullcheck, here, being later on dereferenced.
Maybe it wouldn't hurt that the main condition should also include aEvent
.
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
@jwatt: Maybe a small conditional adjustment this in the area I think you've been refactoring recently?
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Most other overrides of nsIDOMEventListener::HandleEvent don't null check
aEvent at all. This method should never be called without an event.
Comment 3•5 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jwatt, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•5 years ago
|
Pushed by jwatt@jwatt.org: https://hg.mozilla.org/integration/autoland/rev/dd6e8cc3c3d4 Remove unnecessary null check from PrintPreviewUserEventSuppressor::HandleEvent. r=masayuki
Comment 5•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Comment 6•5 years ago
|
||
bugherder uplift |
Description
•