diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-04-08 21:14:03 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-04-08 21:14:03 +0200 |
commit | b1fd12d41f9be5d5f33e4768761ed28f87953082 (patch) | |
tree | 0ecc964bd3c5befe287f7779f798e569dbe9223b | |
parent | 7697aea080f7fe079b304a98d2975a84a40ffb7a (diff) | |
download | apt-b1fd12d41f9be5d5f33e4768761ed28f87953082.tar.gz |
* cmdline/apt-get.cc:0.7.25.3ubuntu6
- fix crash when pkg.VersionList() is empty (LP: #556056)
-rw-r--r-- | cmdline/apt-get.cc | 4 | ||||
-rw-r--r-- | debian/changelog | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 5de3fb036..b379dc82f 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1283,6 +1283,10 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs, break; fuzzy = true; Ver = Pkg.VersionList(); + // exit right away from the Pkg.VersionList() loop if we + // don't have any versions + if (Ver.end() == true) + break; } // We match against a concrete version (or a part of this version) if (VerTag.empty() == false && diff --git a/debian/changelog b/debian/changelog index c740067e4..13d46cec9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +apt (0.7.25.3ubuntu6) lucid; urgency=low + + * cmdline/apt-get.cc: + - fix crash when pkg.VersionList() is empty (LP: #556056) + + -- Michael Vogt <michael.vogt@ubuntu.com> Thu, 08 Apr 2010 21:13:25 +0200 + apt (0.7.25.3ubuntu5) lucid; urgency=low [ David Kalnischkies ] |