commit | 6a2c23dc1bb17b3a2819a33dc6af77b293de1aae | [log] [tgz] |
---|---|---|
author | Vishwath Mohan <vishwath@google.com> | Mon Mar 09 18:55:11 2015 -0700 |
committer | Vishwath Mohan <vishwath@google.com> | Tue Mar 10 12:34:08 2015 -0700 |
tree | e4dc3e714d835e93dce3c34f1a487f9ec490db9f | |
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