Coverity UNINIT_CTOR - CID 10890 - src/rect/src/rect.cpp - in function: CompRect::CompRect(int, int, int, int) - Non-static class member field "mRegion.size" is not initialized in this constructor nor in any functions that it calls.

Bug #957566 reported by Product Strategy Coverity Bug Uploader on 2012-03-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
Medium
MC Return
Compiz Core
Medium
Unassigned
0.9.5
Undecided
Unassigned

Bug Description

This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https://wiki.ubuntu.com/CanonicalProductStrategy/Coverity
CID: 10890
Checker: UNINIT_CTOR
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/457.html
File: /tmp/buildd/compiz-0.9.7.0~bzr3025/src/rect/src/rect.cpp
Function: CompRect::CompRect(int, int, int, int)
Code snippet:
 47 mRegion.extents.x1 = x;
 48 mRegion.extents.y1 = y;
 49 mRegion.extents.x2 = x + width;
 50 mRegion.extents.y2 = y + height;
CID 10890 - UNINIT_CTOR
Non-static class member field "mRegion.size" is not initialized in this constructor nor in any functions that it calls.
 51 }
 52
 53 CompRect::CompRect (const CompRect& r)
 54 {
 55 mRegion = r.mRegion;
 56 mRegion.rects = &mRegion.extents;

Changed in compiz:
importance: Undecided → Medium
MC Return (mc-return) on 2013-07-06
summary: - Coverity UNINIT_CTOR - CID 10890
+ Coverity UNINIT_CTOR - CID 10890 - src/rect/src/rect.cpp - in function:
+ CompRect::CompRect(int, int, int, int) - Non-static class member field
+ "mRegion.size" is not initialized in this constructor nor in any
+ functions that it calls.
Changed in compiz:
milestone: none → 0.9.10.0
assignee: nobody → MC Return (mc-return)
MC Return (mc-return) on 2013-07-07
Changed in compiz:
status: New → Triaged
Changed in compiz:
milestone: 0.9.10.0 → 0.9.10.2
MC Return (mc-return) on 2013-07-24
Changed in compiz:
milestone: 0.9.10.2 → 0.9.11.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers