From 5cecf6b8dff15afae4b0cf68c8830856c57e384a Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Thu, 20 Jan 2022 10:33:04 +0700 Subject: Fix incorrect type when parsing Size (int to unsigned long long) Should have been done in 650faab016 (2011). At this time, the type of the Size parameter in the function prototype was changed to unsigned long long, however FindI was NOT changed to FindULL: git diff 650faab016^..650faab016 -- apt-pkg/indexcopy.cc Closes: #1004064 --- apt-pkg/indexcopy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-pkg') diff --git a/apt-pkg/indexcopy.cc b/apt-pkg/indexcopy.cc index 9fa9361a3..88c2150ff 100644 --- a/apt-pkg/indexcopy.cc +++ b/apt-pkg/indexcopy.cc @@ -414,7 +414,7 @@ bool IndexCopy::GrabFirst(string Path,string &To,unsigned int Depth) bool PackageCopy::GetFile(string &File,unsigned long long &Size) { File = Section->FindS("Filename"); - Size = Section->FindI("Size"); + Size = Section->FindULL("Size"); if (File.empty() || Size == 0) return _error->Error("Cannot find filename or size tag"); return true; -- cgit v1.2.3-70-g09d2