summaryrefslogtreecommitdiff
path: root/linker/linker_libcxx_support.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-08-24 16:44:08 -0700
committerElliott Hughes <enh@google.com>2017-08-24 16:51:48 -0700
commit5da4fe4adaf80c1a5103f739f1ce51de0db795cf (patch)
tree7b9f4331dd067ee80db331b59f2a795976217fb9 /linker/linker_libcxx_support.cpp
parent96c577c48284c376ec065f2b3a2d2987a7eeff5c (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 'linker/linker_libcxx_support.cpp')
0 files changed, 0 insertions, 0 deletions