Coverity FORWARD_NULL - CID 12444 - compizconfig/libcompizconfig/src/compiz.cpp - in function: loadPluginFromXMLFile(_CCSContext *, char *, char *) - Passing null pointer "pbFilePath" to function "writePBFile(char *, PluginMetadata *, PluginBriefMetadata *, stat *)", which dereferences it. Passing null pointer "pbFilePath" to function "updatePBFilePath(CCSContext *, char *, char *)", which dereferences it. (2x FORWARD_NULL)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz |
Triaged
|
Medium
|
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: 12444
Checker: FORWARD_NULL
Category: deref_constant_null
CWE definition: http://
File: /tmp/buildd/
Function: loadPluginFromX
Code snippet:
2829 }
2830
2831 #ifdef USE_PROTOBUF
2832 char *name = NULL;
CID 12444 - FORWARD_NULL
Assigning: "pbFilePath" = "NULL".
Assigning: "pbFilePath" = "NULL".
2833 char *pbFilePath = NULL;
2834 struct stat xmlStat;
2835 Bool removePB = FALSE;
2836
2837 if (usingProtobuf)
2838 {
summary: |
- Coverity FORWARD_NULL - CID 12444 + Coverity FORWARD_NULL - CID 12444 - + compizconfig/libcompizconfig/src/compiz.cpp - in function: + loadPluginFromXMLFile(_CCSContext *, char *, char *) - Passing null + pointer "pbFilePath" to function "writePBFile(char *, PluginMetadata *, + PluginBriefMetadata *, stat *)", which dereferences it. Passing null + pointer "pbFilePath" to function "updatePBFilePath(CCSContext *, char *, + char *)", which dereferences it. (2x FORWARD_NULL) |
Changed in compiz: | |
milestone: | none → 0.9.10.0 |
Changed in compiz: | |
milestone: | 0.9.10.0 → 0.9.11.0 |
no longer affects: | compiz/0.9.9 |
Changed in compiz: | |
importance: | High → Medium |
milestone: | 0.9.11.0 → 0.9.12.0 |
status: | New → Triaged |
Changed in compiz: | |
milestone: | 0.9.12.0 → 0.9.12.1 |
Changed in compiz: | |
milestone: | 0.9.12.1 → 0.9.12.2 |
Source file with Coverity annotations.