summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-05-05 10:01:41 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-05-05 10:01:41 +0200
commitcda675393c357aeeb7617652f5fe3c77d803229a (patch)
tree0636c02972120268bf4871b167f5e8d8ded4f877 /apt-pkg/deb
parent52d9d000a74ea71edff93f00ae38aceb9ada53d4 (diff)
parent63b528a4585d10926a9972663435bc0abc815345 (diff)
* apt-pkg/deb/debrecords.cc:
- fix max tag buffer size (LP: #545336, closes: #578959)
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/debrecords.cc3
1 files changed, 2 insertions, 1 deletions
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)
{
}
/*}}}*/