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:42:20 +0000 (15:42 +0000)
commite435404a7d2afa6b4cb9a59319667bf72af4df1f
tree88c1a02456e385b5f92748fc72b337741db4a341
parentfb9f699d79084b90537b2cae3f733962ab59159f
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