Coverity WRAPPER_ESCAPE - CID 12604 - plugins/annotate/src/annotate.cpp - Assigning: "tool" = "CompString(CompOption::getStringOptionNamed(options, CompString const("tool", std::allocator<char>()), CompString const("line", std::allocator<char>()))).c_str()", which extracts wrapped state from temporary "<temporary>", which is freed by its destructor.

Bug #1101461 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
In Progress
High
Stephen M. Webb
0.9.11
Triaged
High
Stephen M. Webb

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: 12604
Checker: WRAPPER_ESCAPE
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/416.html
File: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/annotate/src/annotate.cpp
Function: AnnoScreen::draw(CompAction *, unsigned int, std::vector<CompOption, std::allocator<CompOption>> &)
Code snippet:
307 const char *tool;
308 unsigned short *fillColor, *strokeColor;
309 double strokeWidth;
310
CID 12604 - WRAPPER_ESCAPE
Assigning: "tool" = "CompString(CompOption::getStringOptionNamed(options, CompString const("tool", std::allocator<char>()), CompString const("line", std::allocator<char>()))).c_str()", which extracts wrapped state from temporary "<temporary>".
The internal representation of "<temporary>" is freed by its destructor.
311 tool =
312 CompOption::getStringOptionNamed (options, "tool", "line").c_str ();
313
314 cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
315 cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
316

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : compiz-0.9.9: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/annotate/src/annotate.cpp

Source file with Coverity annotations.

Changed in compiz:
importance: Undecided → High
MC Return (mc-return)
summary: - Coverity WRAPPER_ESCAPE - CID 12604
+ Coverity WRAPPER_ESCAPE - CID 12604 - plugins/annotate/src/annotate.cpp
+ - Assigning: "tool" =
+ "CompString(CompOption::getStringOptionNamed(options, CompString
+ const("tool", std::allocator<char>()), CompString const("line",
+ std::allocator<char>()))).c_str()", which extracts wrapped state from
+ temporary "<temporary>", which is freed by its destructor.
Changed in compiz:
milestone: none → 0.9.10.0
MC Return (mc-return)
Changed in compiz:
milestone: 0.9.10.0 → 0.9.11.0
Stephen M. Webb (bregma)
no longer affects: compiz/0.9.9
Changed in compiz:
status: New → Triaged
Stephen M. Webb (bregma)
no longer affects: compiz/0.9.10
Stephen M. Webb (bregma)
Changed in compiz:
milestone: 0.9.11.0 → 0.9.12.1
Stephen M. Webb (bregma)
Changed in compiz:
assignee: nobody → Stephen M. Webb (bregma)
status: Triaged → In Progress
Stephen M. Webb (bregma)
Changed in compiz:
milestone: 0.9.12.1 → 0.9.12.2
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.