Merge lp:~bregma/compiz/lp-1101554 into lp:compiz/0.9.12
Proposed by
Stephen M. Webb
Status: | Merged |
---|---|
Approved by: | Christopher Townsend |
Approved revision: | 3908 |
Merged at revision: | 3913 |
Proposed branch: | lp:~bregma/compiz/lp-1101554 |
Merge into: | lp:compiz/0.9.12 |
Diff against target: |
40 lines (+9/-0) 1 file modified
plugins/animation/src/dodge.cpp (+9/-0) |
To merge this branch: | bzr merge lp:~bregma/compiz/lp-1101554 |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christopher Townsend | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+243405@code.launchpad.net |
Commit message
dodge plugin: avoid potential null pointer dereferences
Description of the change
Avoid potential NULL pointer dereferences in the Dodge plugin.
The code was using dynamic_cast<>() to downcast animation pointers, and sometimes did not check the result. It may be the case that dynamic_cast<>() is inappropriate and should be replaced by static_cast<>() but that would take a good deal more analysis and some good unit tests (which in turn would necessitate an ABI break), something that's not going ot happen in the forseeable future.
To post a comment you must log in.
FAILED: Continuous integration, rev:3907 jenkins. qa.ubuntu. com/job/ compiz- ci/20/ jenkins. qa.ubuntu. com/job/ compiz- vivid-amd64- ci/10/console jenkins. qa.ubuntu. com/job/ compiz- vivid-armhf- ci/10/console jenkins. qa.ubuntu. com/job/ compiz- vivid-i386- ci/10/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/compiz- ci/20/rebuild
http://