Coverity REVERSE_INULL - CID 10888
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:/
CID: 10888
Checker: REVERSE_INULL
Category: No category available
CWE definition: http://
File: /tmp/buildd/
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
- Alan Griffiths: Approve
-
Diff: 18 lines (+1/-1)1 file modifiedsrc/string/src/string.cpp (+1/-1)
Changed in compiz-core: | |
status: | New → In Progress |
assignee: | nobody → Daniel van Vugt (vanvugt) |
milestone: | none → 0.9.7.4 |
Source file with Coverity annotations.