Coverity REVERSE_INULL - CID 10888

Bug #957572 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz Core
Fix Released
High
Daniel van Vugt
0.9.5
New
Undecided
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: 10888
Checker: REVERSE_INULL
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/476.html
File: /tmp/buildd/compiz-0.9.7.0~bzr3025/src/string/src/string.cpp
Function: compPrintf(const char *, void *)
Code snippet:
 43
 44 CompString compPrintf (const char *format, va_list ap)
 45 {
 46 va_list aq;
CID 10888 - REVERSE_INULL
Dereferencing pointer "format". (The dereference is assumed on the basis of the 'nonnull' parameter attribute.)
 47 unsigned int size = strlen (format) + 1;
 48 int n;
 49 char *str;
 50
CID 10888 - REVERSE_INULL
Dereferencing "format" before a null check.
 51 if (!format)
 52 return CompString ("");

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : compiz-core-0.9.5: /tmp/buildd/compiz-0.9.7.0~bzr3025/src/string/src/string.cpp

Source file with Coverity annotations.

Changed in compiz-core:
importance: Undecided → High
Changed in compiz-core:
status: New → In Progress
assignee: nobody → Daniel van Vugt (vanvugt)
milestone: none → 0.9.7.4
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix committed into lp:compiz-core at revision 3068

Changed in compiz-core:
status: In Progress → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix released in Compiz Core 0.9.7.4

Changed in compiz-core:
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.