From d4c45145553781418c25343ac1478f62da645851 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 13 Mar 2016 22:44:37 +0100 Subject: enforce verify of filesize in 'apt-get source' The structure we parse the data into has a dedicated size field, but it tends to be easier to handle it as a (very weak) checksum. --- apt-pkg/deb/debsrcrecords.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'apt-pkg') diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc index cefaf46ac..e8295debb 100644 --- a/apt-pkg/deb/debsrcrecords.cc +++ b/apt-pkg/deb/debsrcrecords.cc @@ -216,6 +216,7 @@ bool debSrcRecordParser::Files2(std::vector &List) F.Path = path; F.FileSize = strtoull(size.c_str(), NULL, 10); F.Hashes.push_back(hashString); + F.Hashes.FileSize(F.FileSize); APT_IGNORE_DEPRECATED_PUSH F.Size = F.FileSize; -- cgit v1.2.3