diff options
author | Vishwath Mohan <vishwath@google.com> | 2015-03-09 18:55:11 -0700 |
---|---|---|
committer | Vishwath Mohan <vishwath@google.com> | 2015-03-10 12:34:08 -0700 |
commit | 6a2c23dc1bb17b3a2819a33dc6af77b293de1aae (patch) | |
tree | e4dc3e714d835e93dce3c34f1a487f9ec490db9f /libs/hwui/renderthread/DrawFrameTask.cpp | |
parent | 53776a2b3c18f3eb2217e5e3af4dda187d0fee62 (diff) |
Prevent integer overflow in ResourceTypes
Adds checks to 2 malloc() calls to ensure that the finally allocated
buffer size is not vulnerable to integer overflows. Also includes a
sanity check on the upper bound for type_info.numEntries before each
call.
Bug: 15171384
Change-Id: Ifdf0276bcca7e3d93da7c3577b9486d3c03a9d03
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions