Coverity REVERSE_INULL - CID 10693

Bug #943705 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
notify-osd (Ubuntu)
New
High
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: 10693
Checker: REVERSE_INULL
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/476.html
File: /tmp/buildd/notify-osd-0.9.33/src/defaults.c
Function: _get_font_size_dpi()
Code snippet:
192 pango_font_description_free (desc);
193 g_free ((gpointer) font_name);
194
195 // extract font-face-name/style
CID 10693 - REVERSE_INULL
Directly dereferencing pointer "string".
196 font_face = extract_font_face (string->str);
197
CID 10693 - REVERSE_INULL
Dereferencing "string" before a null check.
198 if (string != NULL)
199 g_string_free (string, TRUE);
200
201 /* update stored font-face name and clean up */

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : notify-osd-oneiric: /tmp/buildd/notify-osd-0.9.33/src/defaults.c

Source file with Coverity annotations.

Changed in notify-osd:
importance: Undecided → High
affects: notify-osd → notify-osd (Ubuntu)
no longer affects: notify-osd/oneiric
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.