fix integer overflow on 2GiB+ maps on 32-bit platforms

Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
Yuriy M. Kaminskiy 2015-06-20 21:39:41 +10:00 committed by Craig Small
parent 4129c758ac
commit 9ed623780f

2
pmap.c
View File

@ -518,7 +518,7 @@ static int one_proc(proc_t * p)
unsigned long total_shared = 0ul; unsigned long total_shared = 0ul;
unsigned long total_private_readonly = 0ul; unsigned long total_private_readonly = 0ul;
unsigned long total_private_writeable = 0ul; unsigned long total_private_writeable = 0ul;
KLONG diff = 0; unsigned KLONG diff = 0;
const char *cp2 = NULL; const char *cp2 = NULL;
unsigned long long rss = 0ull; unsigned long long rss = 0ull;
unsigned long long private_dirty = 0ull; unsigned long long private_dirty = 0ull;