fix integer overflow on 2GiB+ maps on 32-bit platforms
Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
parent
4129c758ac
commit
9ed623780f
2
pmap.c
2
pmap.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user