Coverity REVERSE_INULL - CID 10888

Bug #957572 reported by Product Strategy Coverity Bug Uploader on 2012-03-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz Core
High
Daniel van Vugt
0.9.5
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 ("");

Related branches

Changed in compiz-core:
status: New → In Progress
assignee: nobody → Daniel van Vugt (vanvugt)
milestone: none → 0.9.7.4
Daniel van Vugt (vanvugt) wrote :

Fix committed into lp:compiz-core at revision 3068

Changed in compiz-core:
status: In Progress → Fix Committed
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  Edit
Everyone can see this information.

Other bug subscribers