diff options
| author | Elliott Hughes <enh@google.com> | 2017-08-24 16:44:08 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2017-08-24 16:51:48 -0700 |
| commit | 5da4fe4adaf80c1a5103f739f1ce51de0db795cf (patch) | |
| tree | 7b9f4331dd067ee80db331b59f2a795976217fb9 /libc/malloc_hooks/tests/malloc_hooks_tests.cpp | |
| parent | 96c577c48284c376ec065f2b3a2d2987a7eeff5c (diff) | |
Fix overflow in get_phys_pages and get_avphys_pages.
On LP32 mem_unit will be 4096 to allow more than 4GiB in the "ulong"
fields, but we need to promote to a 64-bit type before we multiply.
Bug: N/A
Test: tested manually with an x86 static binary on my 64GiB desktop.
Signed-off-by: YiPing Xu <xuyiping@hisilicon.com>
Change-Id: Id663932503b75793bb7c26a008129f3e2e4cccbf
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions
