Browse Source

* apt-pkg/deb/debrecords.cc:
- fix max tag buffer size (LP: #545336, closes: #578959)

Michael Vogt 16 years ago
parent
commit
b1471fb3f6
2 changed files with 4 additions and 1 deletions
  1. 2 1
      apt-pkg/deb/debrecords.cc
  2. 2 0
      debian/changelog

+ 2 - 1
apt-pkg/deb/debrecords.cc

@@ -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)
 {
 }
 									/*}}}*/

+ 2 - 0
debian/changelog

@@ -66,6 +66,8 @@ apt (0.7.26~exp4) UNRELEASEDexperimental; 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)
 
   [ Julian Andres Klode ]
   * apt-pkg/contrib/weakptr.h: