]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/deb/debrecords.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Wed, 5 May 2010 08:01:41 +0000 (10:01 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 5 May 2010 08:01:41 +0000 (10:01 +0200)
  - fix max tag buffer size (LP: #545336, closes: #578959)

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

index 5b8538a4676676ec1c950bece01578809d7b29af..34ef0d8f25801e5c7f44804dab85a3c14d5607b2 100644 (file)
@@ -20,7 +20,8 @@
 /* */
 debRecordParser::debRecordParser(string FileName,pkgCache &Cache) : 
                   File(FileName,FileFd::ReadOnly), 
-                  Tags(&File,Cache.Head().MaxVerFileSize + 200)
+                  Tags(&File, std::max(Cache.Head().MaxVerFileSize, 
+                                      Cache.Head().MaxDescFileSize) + 200)
 {
 }
                                                                        /*}}}*/
index eb618118d4826d22ba4ecc02c8cf602131fe04f7..3421b8b6f688c9da90f1845501a7fc4e88841e8f 100644 (file)
@@ -8,6 +8,8 @@ apt (0.7.26~exp4) unstable; urgency=low
   * test/libapt/getlanguages_test.cc:
     - Add test for Esperanto that has nocounty associated with them
       (LP: #560956)
+  * apt-pkg/deb/debrecords.cc:
+    - fix max tag buffer size (LP: #545336, closes: #578959)
 
  -- Michael Vogt <michael.vogt@ubuntu.com>  Tue, 04 May 2010 09:55:08 +0200