diff options
author | Michael Vogt <mvo@debian.org> | 2014-05-27 17:49:53 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-05-27 17:49:53 +0200 |
commit | de6221c9d5f99a276628bcf45fb28537e46e7660 (patch) | |
tree | 9414a683121ad15aecfc706e82a43999766c1dc1 /apt-pkg/depcache.cc | |
parent | 21ea1dbb50176a89e7f456f9b31220ff3097fdf2 (diff) |
Do not try to cast a pkgDepCache::Policy to a pkgCache
Fix incorrect cast in pkgDepCache::Policy::GetCandidateVer()
Reported-By: clang -fsanitize=address -fno-omit-frame-pointer
Diffstat (limited to 'apt-pkg/depcache.cc')
-rw-r--r-- | apt-pkg/depcache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index 19a6e0d7e..aa96ac58f 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -1678,7 +1678,7 @@ pkgCache::VerIterator pkgDepCache::Policy::GetCandidateVer(PkgIterator const &Pk { /* Not source/not automatic versions cannot be a candidate version unless they are already installed */ - VerIterator Last(*(pkgCache *)this,0); + VerIterator Last; for (VerIterator I = Pkg.VersionList(); I.end() == false; ++I) { |