Closed
Bug 1167531
Opened 8 years ago
Closed 8 years ago
Uninitialised value uses relating to GonkDisplayJB::GonkDisplayJB
Categories
(Core Graveyard :: Widget: Gonk, defect)
Tracking
(firefox41 fixed)
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: jseward, Assigned: jseward)
Details
Attachments
(2 files)
5.03 KB,
text/plain
|
Details | |
925 bytes,
patch
|
mwu
:
review+
|
Details | Diff | Splinter Review |
GonkDisplayJB::GonkDisplayJB allocates a secondary structure GonkDisplayJB.cpp:132 mList = (hwc_display_contents_1_t *)malloc(sizeof(*mList) + (sizeof(hwc_layer_1_t)*2)); Some but not all of mList's many fields are filled in in GonkDisplayJB::Post. It appears that some of these fields (5, I suspect) are used uninitialised shortly thereafter.
Assignee | ||
Comment 1•8 years ago
|
||
Assignee | ||
Comment 2•8 years ago
|
||
* Allocates mList using calloc so as to ensure that all fields are defined * [optional cleanup] sets GonkDisplayJB::{mWidth,mHeight} right at the start of GonkDisplayJB::GonkDisplayJB so as to make it obvious to all that these fields have an initial value regardless of the control flow in the constructor body.
Assignee | ||
Updated•8 years ago
|
Attachment #8609262 -
Flags: review?(mwu)
Updated•8 years ago
|
Attachment #8609262 -
Flags: review?(mwu) → review+
https://hg.mozilla.org/mozilla-central/rev/ec2a1ba41a7a
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Updated•4 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•