From: Michael Vogt Date: Wed, 5 May 2010 08:01:41 +0000 (+0200) Subject: * apt-pkg/deb/debrecords.cc: X-Git-Tag: 0.8.0~14 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/cda675393c357aeeb7617652f5fe3c77d803229a?hp=52d9d000a74ea71edff93f00ae38aceb9ada53d4 * apt-pkg/deb/debrecords.cc: - fix max tag buffer size (LP: #545336, closes: #578959) --- diff --git a/apt-pkg/deb/debrecords.cc b/apt-pkg/deb/debrecords.cc index 5b8538a46..34ef0d8f2 100644 --- a/apt-pkg/deb/debrecords.cc +++ b/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) { } /*}}}*/ diff --git a/debian/changelog b/debian/changelog index eb618118d..3421b8b6f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 04 May 2010 09:55:08 +0200