Coverity USE_AFTER_FREE - CID 12598 - plugins/animation/include/animation/gridtransform.h - in function: GridTransformAnim::~GridTransformAnim() - "GridAnim::~GridAnim()" frees "this->texturesCache". Calling "TransformAnim::~TransformAnim()" frees pointer "this->texturesCache" which has already been freed.

Bug #1101540 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: 12598
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/include/animation/gridtransform.h
Function: GridTransformAnim::~GridTransformAnim()
Code snippet:
  0 #endif
  1 #ifndef ANIMATION_GRIDTRANSFORM_H
  2 #define ANIMATION_GRIDTRANSFORM_H
  3 #include "animation.h"
CID 12598 - USE_AFTER_FREE
"GridAnim::~GridAnim()" frees "this->texturesCache".
Calling "TransformAnim::~TransformAnim()" frees pointer "this->texturesCache" which has already been freed.
  4 class GridTransformAnim :
  5 public GridAnim,
  6 virtual public TransformAnim
  7 {
  8 public:
  9 GridTransformAnim (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/include/animation/gridtransform.h

Source file with Coverity annotations.

Changed in compiz:
importance: Undecided → High
MC Return (mc-return)
summary: - Coverity USE_AFTER_FREE - CID 12598
+ Coverity USE_AFTER_FREE - CID 12598 -
+ plugins/animation/include/animation/gridtransform.h - in function:
+ GridTransformAnim::~GridTransformAnim() - "GridAnim::~GridAnim()" 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:
milestone: 0.9.11.0 → 0.9.12.0
importance: High → Medium
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.