diff options
author | Julian Andres Klode <jak@debian.org> | 2015-12-07 14:42:25 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-12-07 14:44:15 +0100 |
commit | 5a97834817dd43b7833881f38f512a9f2fdac8a9 (patch) | |
tree | 84b21bcb17dff140c9d0022d3b71aa7f019f097e /apt-pkg/policy.h | |
parent | e23ee4c21c6d8045ab020526aa864a48dc16ddd9 (diff) |
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
Diffstat (limited to 'apt-pkg/policy.h')
0 files changed, 0 insertions, 0 deletions