Closed
Bug 1283092
Opened 9 years ago
Closed 9 years ago
[Static Analysis][Uninitialized pointer field] In constructor GLXDisplay
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla50
| Tracking | Status | |
|---|---|---|
| firefox50 | --- | fixed |
People
(Reporter: andi, Assigned: andi)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, Whiteboard: CID 1362652)
Attachments
(1 file)
The Static Analysis tool Coverity detected that member variable |mXDisplay| is not initialised in the constructor. I see that it is initialised outside by function Setup->SetupGLContext
I think we could initialise it with nullptr since it's very cheap and by doing this we avoid marking at for skipping the initialisation checker performed by the clang-plugin.
The following bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1282408 servers as the meta bug where we put all of the patches that are created for the variables that we want to be skipped during analysis.
| Assignee | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/61282/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/61282/
Attachment #8766314 -
Flags: review?(jmuizelaar)
Updated•9 years ago
|
Attachment #8766314 -
Flags: review?(jmuizelaar) → review+
Comment 2•9 years ago
|
||
Comment on attachment 8766314 [details]
Bug 1283092 - initialise member variable |mXDisplay|.
https://reviewboard.mozilla.org/r/61282/#review58404
Pushed by bpostelnicu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0b51143888a6
initialise member variable |mXDisplay|. r=jrmuizel
Comment 4•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in
before you can comment on or make changes to this bug.
Description
•