Coverity STACK_USE - CID 12532 - plugins/cubeaddon/src/cubeaddon.cpp - in function: CubeaddonScreen::paintCap(const GLScreenPaintAttrib &, const GLMatrix &, CompOutput *, int, bool, bool) - Local variable "capVertices" uses 10080 bytes of stack space, which exceeds the maximum single use of 10000 bytes.

Bug #1101562 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
Triaged
Medium
Unassigned
0.9.9
New
Medium
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: 12532
Checker: STACK_USE
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/400.html
File: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/cubeaddon/src/cubeaddon.cpp
Function: CubeaddonScreen::paintCap(const GLScreenPaintAttrib &, const GLMatrix &, CompOutput *, int, bool, bool)
Code snippet:
513 normalizedOpacity);
514 streamingBuffer->addNormals (CAP_NVERTEX / 3, (l == 0) ? mCapFill : mCapFillNorm);
515
516 GLushort *idx = mCapFillIdx;
CID 12532 - STACK_USE
Local variable "capVertices" uses 10080 bytes of stack space, which exceeds the maximum single use of 10000 bytes.
517 GLfloat capVertices[CAP_NIDX * 3];
518 GLfloat *capVerticesPtr = capVertices;
519
520 for (unsigned int i = 0; i < CAP_NIDX; ++i)
521 {
522 unsigned int vertexIndex = idx[i] * 3;

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : compiz-0.9.9: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/cubeaddon/src/cubeaddon.cpp

Source file with Coverity annotations.

Changed in compiz:
importance: Undecided → Medium
MC Return (mc-return)
summary: - Coverity STACK_USE - CID 12532
+ Coverity STACK_USE - CID 12532 - plugins/cubeaddon/src/cubeaddon.cpp -
+ in function: CubeaddonScreen::paintCap(const GLScreenPaintAttrib &,
+ const GLMatrix &, CompOutput *, int, bool, bool) - Local variable
+ "capVertices" uses 10080 bytes of stack space, which exceeds the maximum
+ single use of 10000 bytes.
Changed in compiz:
status: New → Triaged
assignee: nobody → MC Return (mc-return)
milestone: none → 0.9.10.0
MC Return (mc-return)
Changed in compiz:
assignee: MC Return (mc-return) → nobody
Changed in compiz:
milestone: 0.9.10.0 → 0.9.10.2
MC Return (mc-return)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.