Coverity USE_AFTER_FREE - CID 12602 - plugins/animation/src/private.h - in function: DodgeAnim::~DodgeAnim() - "RestackAnim::~RestackAnim()" frees "this->texturesCache". Calling "TransformAnim::~TransformAnim()" frees pointer "this->texturesCache" which has already been freed.

Bug #1101611 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
Invalid
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://wiki.ubuntu.com/CanonicalProductStrategy/Coverity
CID: 12602
Checker: USE_AFTER_FREE
Category: double_free
CWE definition: http://cwe.mitre.org/data/definitions/672.html
File: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/animation/src/private.h
Function: DodgeAnim::~DodgeAnim()
Code snippet:
676 } DodgeDirection;
677
678 class DodgePersistentData;
679
CID 12602 - USE_AFTER_FREE
"RestackAnim::~RestackAnim()" frees "this->texturesCache".
Calling "TransformAnim::~TransformAnim()" frees pointer "this->texturesCache" which has already been freed.
680 class DodgeAnim :
681 public RestackAnim,
682 public TransformAnim
683 {
684 public:
685 DodgeAnim (CompWindow *w,

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/animation/src/private.h

Source file with Coverity annotations.

Changed in compiz:
importance: Undecided → High
MC Return (mc-return)
summary: - Coverity USE_AFTER_FREE - CID 12602
+ Coverity USE_AFTER_FREE - CID 12602 - plugins/animation/src/private.h -
+ in function: DodgeAnim::~DodgeAnim() - "RestackAnim::~RestackAnim()"
+ frees "this->texturesCache". Calling "TransformAnim::~TransformAnim()"
+ frees pointer "this->texturesCache" which has already been freed.
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)
Changed in compiz:
status: New → Triaged
Stephen M. Webb (bregma)
no longer affects: compiz/0.9.9
no longer affects: compiz/0.9.10
Changed in compiz:
importance: High → Medium
milestone: 0.9.11.0 → 0.9.12.0
Stephen M. Webb (bregma)
Changed in compiz:
milestone: 0.9.12.0 → 0.9.12.1
Revision history for this message
Stephen M. Webb (bregma) wrote :

False positive. Coverity is not detecting the virtual inheritance of the Animation base class which contains and frees the texturesCache member.

Changed in compiz:
milestone: 0.9.12.1 → none
status: Triaged → Invalid
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.