Coverity CHECKED_RETURN - CID 11391

Bug #1112844 reported by Allan LeSage
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Application Menu Indicator
Fix Released
High
Mathieu Trudel-Lapierre
indicator-appmenu (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

A Coverity bug could not be exported due to the nature of its shared project--I'll attach a pretty-printed report here.

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: 11391
Checker: CHECKED_RETURN
Category: library_function
CWE definition: http://cwe.mitre.org/data/definitions/252.html
File: /tmp/buildd/hud-13.04.0/src/usage-tracker.c
Function: configure_db
Code snippet:
210 }
211
212 gchar * cachedir = g_build_filename(basecachedir, "indicator-appmenu", NULL);
213 if (!g_file_test(cachedir, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) {
CID 11391 - CHECKED_RETURN
Calling function "mkdir(cachedir, 448U)" without checking return value. This library function may fail and return an error code.
No check of the return value of "mkdir(cachedir, 448U)".
214 g_mkdir(cachedir, 1 << 6 | 1 << 7 | 1 << 8); // 700
215 }
216 g_free(cachedir);
217
218 self->priv->cachefile = g_build_filename(basecachedir, "indicator-appmenu", "hud-usage-log.sqlite", NULL);
219 db_exists = g_file_test(self->priv->cachefile, G_FILE_TEST_EXISTS);

Related branches

Revision history for this message
Allan LeSage (allanlesage) wrote :
Changed in indicator-appmenu:
status: New → In Progress
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
Changed in indicator-appmenu:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-appmenu - 12.10.4daily13.02.13-0ubuntu1

---------------
indicator-appmenu (12.10.4daily13.02.13-0ubuntu1) raring; urgency=low

  [ Mathieu Trudel-Lapierre ]
  * Coverity CHECKED_RETURN - CID 11391 (LP: #1112844)

  [ Automatic PS uploader ]
  * Automatic snapshot from revision 231
 -- Automatic PS uploader <email address hidden> Wed, 13 Feb 2013 02:02:13 +0000

Changed in indicator-appmenu (Ubuntu):
status: New → Fix Released
Ted Gould (ted)
Changed in indicator-appmenu:
status: Fix Committed → Fix Released
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.