Closed
Bug 1361617
Opened 7 years ago
Closed 7 years ago
Coverity report: nsFlexContainerFrame::mChildrenHaveBeenReordered is not initialized in this constructor nor in any functions that it calls
Categories
(Core :: Layout, defect, P4)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: MatsPalmgren_bugz, Assigned: dholbert)
References
(Blocks 1 open bug, )
Details
(Keywords: coverity)
Attachments
(1 file)
Coverity CID 1221327 Uninitialized scalar field The field will contain an arbitrary value left over from earlier computations. In nsFlexContainerFrame::nsFlexContainerFrame(nsStyleContext *): A scalar field is not initialized by the constructor 135 explicit nsFlexContainerFrame(nsStyleContext* aContext) 136 : nsContainerFrame(aContext, mozilla::FrameType::FlexContainer) 137 , mBaselineFromLastReflow(NS_INTRINSIC_WIDTH_UNKNOWN) 138 , mLastBaselineFromLastReflow(NS_INTRINSIC_WIDTH_UNKNOWN) CID 1221327 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)2. uninit_member: Non-static class member mChildrenHaveBeenReordered is not initialized in this constructor nor in any functions that it calls. 139 {} =============================== AFAICT, nsFlexContainerFrame::mChildrenHaveBeenReordered is unused and can be removed: http://searchfox.org/mozilla-central/search?q=mChildrenHaveBeenReordered&case=false®exp=false&path=
Reporter | ||
Comment 5•7 years ago
|
||
Better link to show there's only one matching line: http://searchfox.org/mozilla-central/search?q=symbol:F_%3CT_nsFlexContainerFrame%3E_0&redirect=false
Assignee | ||
Comment 6•7 years ago
|
||
Yup -- looks like we removed the variable's usages in bug 981116, but didn't remove the variable itself. Thanks for catching this!
Depends on: 981116
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•7 years ago
|
||
(oops; I didn't notice you'd tagged this as "good-first-bug" until after I pushed the patch. Ah well.)
Keywords: good-first-bug
Reporter | ||
Comment 9•7 years ago
|
||
mozreview-review |
Comment on attachment 8867056 [details] Bug 1361617: Remove unused member var nsFlexContainerFrame::mChildrenHaveBeenReordered. https://reviewboard.mozilla.org/r/138674/#review141936
Attachment #8867056 -
Flags: review?(mats) → review+
Comment 10•7 years ago
|
||
Pushed by dholbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/25e130b9fb74 Remove unused member var nsFlexContainerFrame::mChildrenHaveBeenReordered. r=mats
![]() |
||
Comment 11•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/25e130b9fb74
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•6 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•