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

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

index 8ed0bb7eb2febee4323a8218992ac3145512725d..57d30dc62da61da7c84aba354f7e842e046c7de7 100644 (file)
@@ -19,7 +19,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 7c0024160af6309882e58a449711988a1a5f2481..786fbb1db7427915341728c32c5b7dd70a73daf4 100644 (file)
@@ -41,6 +41,8 @@ apt (0.7.25.4) UNRELEASED; urgency=low
       This is required for languages like Esperanto that have no
       county associated with them (LP: #560956)
       Thanks to "Aisano" for the fix
+  * apt-pkg/deb/debrecords.cc:
+    - fix max tag buffer size (LP: #545336, closes: #578959)
 
   [ Robert Collins ]
   * Change the package index Info methods to allow apt-cache policy to be