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:41:55 +0000 (15:41 +0000)
commitad3b69b15f6d5a1e8eb98572109668009f2f2468
treeeab450126d9f541b67430405234165c023ac3eae
parent03fbe4189194e76b9b278f79b8422c8246961226
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