diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM/Resolve.pm | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -1,4 +1,6 @@ - fix more compilation warnings +- make sure to use int64 on 32bit arch + else we may got total size to overflow (mga#19686) Version 5.11 - 20 October 2016 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; |