Closed
Bug 1361589
Opened 7 years ago
Closed 7 years ago
Coverity report: nsMathMLmencloseFrame::mRuleThickness/mRadicalRuleThickness is not initialized in this constructor nor in any functions that it calls
Categories
(Core :: MathML, defect, P4)
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox53 | --- | wontfix |
firefox54 | --- | wontfix |
firefox55 | --- | fixed |
People
(Reporter: MatsPalmgren_bugz, Assigned: fredw)
References
(Blocks 1 open bug, )
Details
(Keywords: coverity, good-first-bug, regression, Whiteboard: [CID 750310])
Attachments
(1 file)
970 bytes,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
Coverity CID 750310 Uninitialized scalar field The field will contain an arbitrary value left over from earlier computations. In nsMathMLmencloseFrame::nsMathMLmencloseFrame(nsStyleContext *): A scalar field is not initialized by the constructor 50nsMathMLmencloseFrame::nsMathMLmencloseFrame(nsStyleContext* aContext) : 51 nsMathMLContainerFrame(aContext), mNotationsToDraw(0), 52 mLongDivCharIndex(-1), mRadicalCharIndex(-1), mContentWidth(0) 53{ 2. uninit_member: Non-static class member mRuleThickness is not initialized in this constructor nor in any functions that it calls. CID 750310 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)4. uninit_member: Non-static class member mRadicalRuleThickness is not initialized in this constructor nor in any functions that it calls. 54}
Reporter | ||
Comment 1•7 years ago
|
||
It looks like we initialize these during reflow and then use them during paint so it's probably OK. I think we should initialize them to zero in the ctor anyway.
Keywords: good-first-bug
Updated•7 years ago
|
Blocks: coverity-analysis
Whiteboard: [CID 750310]
Assignee | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment on attachment 8865114 [details] [diff] [review] Patch See https://bugzilla.mozilla.org/show_bug.cgi?id=1361647#c2 and https://bugzilla.mozilla.org/show_bug.cgi?id=1361591#c3
Attachment #8865114 -
Flags: review?(karlt) → review?(mats)
Reporter | ||
Updated•7 years ago
|
Attachment #8865114 -
Flags: review?(mats) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/fc5f257ad83b Coverity report: nsMathMLmencloseFrame::mRuleThickness/mRadicalRuleThickness is not initialized in this constructor nor in any functions that it calls. r=karlt
Keywords: checkin-needed
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fc5f257ad83b
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•7 years ago
|
status-firefox53:
--- → wontfix
status-firefox54:
--- → wontfix
status-firefox-esr52:
--- → unaffected
You need to log in
before you can comment on or make changes to this bug.
Description
•