Quellcode durchsuchen

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

Michael Vogt vor 16 Jahren
Ursprung
Commit
63b528a458
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 2 1
      apt-pkg/deb/debrecords.cc
  2. 2 0
      debian/changelog

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

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

+ 2 - 0
debian/changelog

@@ -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