HCoop
/
ntk
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21ea1db
)
Do not try to cast a pkgDepCache::Policy to a pkgCache
author
Michael Vogt
<mvo@debian.org>
Tue, 27 May 2014 15:49:53 +0000
(17:49 +0200)
committer
Michael Vogt
<mvo@debian.org>
Tue, 27 May 2014 15:49:53 +0000
(17:49 +0200)
Fix incorrect cast in pkgDepCache::Policy::GetCandidateVer()
Reported-By: clang -fsanitize=address -fno-omit-frame-pointer
apt-pkg/depcache.cc
patch
|
blob
|
blame
|
history
diff --git
a/apt-pkg/depcache.cc
b/apt-pkg/depcache.cc
index
19a6e0d
..
aa96ac5
100644
(file)
--- 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)
{