Coverity NULL_RETURNS - CID 12472 - plugins/scaleaddon/src/scaleaddon.cpp - in function: ScaleAddonScreen::pullWindow(CompAction *, unsigned int, std::vector<CompOption, std::allocator<CompOption>>) - Function "CompOption::findOption(CompOption::Vector &, CompString, unsigned int *)" returns null (checked 81 out of 84 times). Assigning: "opt" = null return value from "CompOption::findOption(CompOption::Vector &, CompString, unsigned int *)". Dereferencing a pointer that might be null "opt" when calling "CompOption::value()".
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: 12472
Checker: NULL_RETURNS
Category: No category available
CWE definition: http://
File: /tmp/buildd/
Function: ScaleAddonScree
Code snippet:
303
304 o.push_back (CompOption ("root", CompOption:
305 o[0].value ().set ((int) screen->root ());
306
CID 12472 - NULL_RETURNS
Function "CompOption:
Assigning: "opt" = null return value from "CompOption:
307 opt = CompOption:
308 "initiate_key", 0);
CID 12472 - NULL_RETURNS
Dereferencing a pointer that might be null "opt" when calling "CompOption:
309 action = &opt->value ().action ();
310
311 if (action->terminate ())
312 action->terminate () (action, 0, o);
summary: |
- Coverity NULL_RETURNS - CID 12472 + Coverity NULL_RETURNS - CID 12472 - + plugins/scaleaddon/src/scaleaddon.cpp - in function: + ScaleAddonScreen::pullWindow(CompAction *, unsigned int, + std::vector<CompOption, std::allocator<CompOption>>) - Function + "CompOption::findOption(CompOption::Vector &, CompString, unsigned int + *)" returns null (checked 81 out of 84 times). Assigning: "opt" = null + return value from "CompOption::findOption(CompOption::Vector &, + CompString, unsigned int *)". Dereferencing a pointer that might be null + "opt" when calling "CompOption::value()". |
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.