]> git.saurik.com Git - apt.git/commit
Avoid overflow when summing up file sizes
authorJulian Andres Klode <jak@debian.org>
Mon, 7 Dec 2015 13:42:25 +0000 (14:42 +0100)
committerJulian Andres Klode <jak@debian.org>
Mon, 7 Dec 2015 13:44:15 +0000 (14:44 +0100)
commit5a97834817dd43b7833881f38f512a9f2fdac8a9
tree84b21bcb17dff140c9d0022d3b71aa7f019f097e
parente23ee4c21c6d8045ab020526aa864a48dc16ddd9
Avoid overflow when summing up file sizes

We need to pass 0llu instead of 0 as the init value, otherwise
std::accumulate will calculate with ints.

Reported-by: Raphaƫl Hertzog
apt-pkg/acquire.cc
apt-pkg/deb/dpkgpm.cc