]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/deb/dpkgpm.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 4 Oct 2007 17:35:59 +0000 (19:35 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 4 Oct 2007 17:35:59 +0000 (19:35 +0200)
  - fix crash in WriteApportReport (LP: #144537)

apt-pkg/deb/dpkgpm.cc
debian/changelog

index e1e26e903c1da4200b6d34312082007db46beb55..466d3628b9e3fb6e7d0d9fa791d9a69351998d03 100644 (file)
@@ -938,9 +938,9 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg)
    if (Pkg.end() == true)
       return;
    pkgCache::VerIterator Ver = Cache.GetCandidateVer(Pkg);
-   pkgver = Ver.VerStr();
    if (Ver.end() == true)
       return;
+   pkgver = Ver.VerStr() == NULL ? "unknown" : Ver.VerStr();
    pkgRecords Recs(Cache);
    pkgRecords::Parser &Parse = Recs.Lookup(Ver.FileList());
    srcpkgname = Parse.SourcePkg();
index 375a6bb1ecf15d98076b65e95842ea5bd2ecc197..a7cc0a5dde079c7906688df47e861c25b789a239 100644 (file)
@@ -1,3 +1,10 @@
+apt (0.7.6ubuntu13) gutsy; urgency=low
+
+  * apt-pkg/deb/dpkgpm.cc:
+    - fix crash in WriteApportReport (LP: #144537)
+
+ --
+
 apt (0.7.6ubuntu12) gutsy; urgency=low
 
   [ Michael Vogt ]