From 8aceb9b6a318668d0795af52bf9ea9dbb33351d9 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 10 Nov 2016 16:19:41 +0100 Subject: make sure to use int64 on 32bit arch else we may got total size to overflow (mga#19686) v2 by Thierry Vignaud: use native int64 on 64bit --- URPM/Resolve.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'URPM') diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 737ee1c..8020981 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -6,6 +6,7 @@ package URPM; use strict; use warnings; use Config; +use Math::Int64 ':native_if_available', 'int64'; # perl_checker: require URPM @@ -1837,6 +1838,7 @@ sub _selected_size_filesize { my ($urpm, $state, $compute_filesize) = @_; my ($size, $filesize, $bad_filesize); + $size = int64(0); # make sure to use Int64, even on 32bit foreach (keys %{$state->{selected} || {}}) { my $pkg = $urpm->{depslist}[$_]; $size += $pkg->size; -- cgit v1.2.1