OSDN Git Service

osi: Prevent memory allocations with MSB set
authorChris Manton <cmanton@google.com>
Thu, 30 Sep 2021 00:49:25 +0000 (17:49 -0700)
committerChris Manton <cmanton@google.com>
Fri, 1 Oct 2021 15:43:17 +0000 (15:43 +0000)
commitcee4d086c959e174328a0e173398d99f59ccbb1f
tree4d93125fbd36015623d1662e0f1aa9ddab81264c
parent6dd3a7aa69af0c8f733bde9a85f3954ce93413f0
osi: Prevent memory allocations with MSB set

Limit allocations on 32bit to 2 GB
Limit allocations on 64bit to 8 Exabyte

Bug: 197868577
Tag: #refactor
Test: gd/cert/run
Ignore-AOSP-First: Security
Change-Id: I1c347084d7617b1e364a3241f1b37b398a2a6c6a
osi/src/allocator.cc