Coverity STACK_USE - CID 12531 - plugins/cube/src/cube.cpp - in function: PrivateCubeScreen::updateSkydomeTexture() - Local variable "aaafTextureData" uses 196608 bytes of stack space, which exceeds the maximum single use of 10000 bytes.

Bug #1101576 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
Triaged
Medium
MC Return
0.9.9
Won't Fix
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: 12531
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/cube/src/cube.cpp
Function: PrivateCubeScreen::updateSkydomeTexture()
Code snippet:
395
396 if (optionGetSkydomeImage ().empty () ||
397 (mSky = GLTexture::readImageToTexture (imgName, pname, mSkySize)).empty ())
398 {
CID 12531 - STACK_USE
Local variable "aaafTextureData" uses 196608 bytes of stack space, which exceeds the maximum single use of 10000 bytes.
399 GLfloat aaafTextureData[128][128][3];
400 GLfloat fRStart = (GLfloat) optionGetSkydomeGradientStartColorRed () / 0xffff;
401 GLfloat fGStart = (GLfloat) optionGetSkydomeGradientStartColorGreen () / 0xffff;
402 GLfloat fBStart = (GLfloat) optionGetSkydomeGradientStartColorBlue () / 0xffff;
403 GLfloat fREnd = (GLfloat) optionGetSkydomeGradientEndColorRed () / 0xffff;
404 GLfloat fGEnd = (GLfloat) optionGetSkydomeGradientEndColorGreen () / 0xffff;

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/cube/src/cube.cpp

Source file with Coverity annotations.

Changed in compiz:
importance: Undecided → Medium
MC Return (mc-return)
summary: - Coverity STACK_USE - CID 12531
+ Coverity STACK_USE - CID 12531 - plugins/cube/src/cube.cpp - in
+ function: PrivateCubeScreen::updateSkydomeTexture() - Local variable
+ "aaafTextureData" uses 196608 bytes of stack space, which exceeds the
+ maximum single use of 10000 bytes.
Changed in compiz:
milestone: none → 0.9.10.0
status: New → Triaged
assignee: nobody → MC Return (mc-return)
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.