Coverity OVERRUN_STATIC - CID 10720

Bug #944250 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Sound Menu
Fix Released
High
Charles Kerr
Fifth
Fix Released
High
Charles Kerr

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: 10720
Checker: OVERRUN_STATIC
Category: read
CWE definition: http://cwe.mitre.org/data/definitions/119.html
File: /tmp/buildd/indicator-sound-0.8.0.0/src/metadata-widget.c
Function: draw_album_border()
Code snippet:
527 bg_normal.r = style->bg[0].red/65535.0;
528 bg_normal.g = style->bg[0].green/65535.0;
529 bg_normal.b = style->bg[0].blue/65535.0;
530
At conditional: "selected" taking True branch
CID 10720 - OVERRUN_STATIC
Assigning: "state" = "selected ? 5 : 0".
531 gint state = selected ? 5 : 0;
532
CID 10720 - OVERRUN_STATIC
Overrunning static array "style->fg", with 5 elements, at position 5 with index variable "state".
533 fg_normal.r = style->fg[state].red/65535.0;
534 fg_normal.g = style->fg[state].green/65535.0;
535 fg_normal.b = style->fg[state].blue/65535.0;
536

Related branches

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : indicator-sound-fifth: /tmp/buildd/indicator-sound-0.8.0.0/src/metadata-widget.c

Source file with Coverity annotations.

Changed in indicator-sound:
importance: Undecided → High
Revision history for this message
Charles Kerr (charlesk) wrote :
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.