Coverity PW.BRANCH_PAST_INITIALIZATION - CID 10731

Bug #957415 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Application Menu Indicator
Fix Released
Low
Charles Kerr
0.4
Fix Released
Low
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: 10731
Checker: PW.BRANCH_PAST_INITIALIZATION
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/457.html
File: /tmp/buildd/indicator-appmenu-0.3.94/tests/test-bad-app-info.c
Function: No function name available
Code snippet:
 59 gint tmpfile = g_file_open_tmp("hud-test-bad-app-info-temp-db-XXXXXX", &filename, NULL);
 60
 61 if (tmpfile < 0) {
 62 passed = FALSE;
CID 10731 - PW.BRANCH_PAST_INITIALIZATION
transfer of control bypasses initialization of:
variable "db" (declared at line 72)
variable "open_status" (declared at line 73)
 63 goto cleanup;
 64 }
 65
 66 close(tmpfile);
 67 /* NOTE: there is a small security bug here in that we're closing the
 68 file and reopening it, so the temp isn't really gauranteed to be

Related branches

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : indicator-appmenu-0.4: /tmp/buildd/indicator-appmenu-0.3.94/tests/test-bad-app-info.c

Source file with Coverity annotations.

Changed in indicator-appmenu:
importance: Undecided → Medium
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.