Closed
Bug 1289407
Opened 8 years ago
Closed 8 years ago
[Static Analysis][Uninitialized scalar field] In constructor nsDisplayItem(nsIFrame* aFrame)
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla50
People
(Reporter: andi, Assigned: andi)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, Whiteboard: CID 1364099)
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
tnikkel
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details |
The Static Analysis tool Coverity detected that |mForceNotVisible| is not initialised in the following context:
>> explicit nsDisplayItem(nsIFrame* aFrame)
>> : mFrame(aFrame)
>> , mClip(nullptr)
>> , mScrollClip(nullptr)
>> , mReferenceFrame(nullptr)
>> , mAnimatedGeometryRoot(nullptr)
>>#ifdef MOZ_DUMP_PAINTING
>> , mPainted(false)
>>#endif
>> {
>> }
In order to integrate our static analysis tool that checks for uninitialised member variables we need this to be initialised for marked as skipped, like 1282408, but judging from the context i think we can initialise it with false.
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/67162/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/67162/
Attachment #8774721 -
Flags: review?(bzbarsky)
Updated•8 years ago
|
Attachment #8774721 -
Flags: review?(bzbarsky) → review?(tnikkel)
Comment 2•8 years ago
|
||
Comment on attachment 8774721 [details] Bug 1289407 - initialise |mForceNotVisible| in explicit ctor. https://reviewboard.mozilla.org/r/67162/#review64094 Thanks. We'll want to uplift to aurora and beta because the patch that caused this has been uplifted.
Attachment #8774721 -
Flags: review?(tnikkel) → review+
Comment 3•8 years ago
|
||
Comment on attachment 8774721 [details] Bug 1289407 - initialise |mForceNotVisible| in explicit ctor. Actually, probably too late for beta. Approval Request Comment [Feature/regressing bug #]: bug 1276467 [User impact if declined]: fix for bug 1276467 (which we uplifted) might not get applied in the right cases [Describe test coverage new/current, TreeHerder]: nope [Risks and why]: safe [String/UUID change made/needed]: none
Attachment #8774721 -
Flags: approval-mozilla-aurora?
Pushed by bpostelnicu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1d4ebd027c42 initialise |mForceNotVisible| in explicit ctor. r=tnikkel
Comment 5•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1d4ebd027c42
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Updated•8 years ago
|
status-firefox49:
--- → affected
Comment 6•8 years ago
|
||
Comment on attachment 8774721 [details] Bug 1289407 - initialise |mForceNotVisible| in explicit ctor. sure, let's take it
Attachment #8774721 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 7•8 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-aurora/rev/11204e05dff9
You need to log in
before you can comment on or make changes to this bug.
Description
•