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:57 +0000 (15:42 +0000)
commit1e76ec66d8ad19f94a4e253db040d6983c6b830e
tree8a7f9ad58141db335c56908c37cef1f4e825a643
parent351d594583dc6af0ad91dfb378c323bf6f79a5f1
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