diff options
author | Adam Lesinski <adamlesinski@google.com> | 2015-04-27 12:13:33 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2015-05-27 10:20:03 -0700 |
commit | 9bd7afc0a1de9589c13355178b6edc709bd0bddf (patch) | |
tree | 910fe8e6e37e4e91dd05019bca1e41108bdad62e /libutils/String8.cpp | |
parent | efbf36f2dad8f083de6f48dbb682461d7cfa9781 (diff) |
Prevent integer overflow when allocating native_handle_t
User specified values of numInts and numFds can overflow
and cause malloc to allocate less than we expect, causing
heap corruption in subsequent operations on the allocation.
Bug: 19334482
Change-Id: I43c75f536ea4c08f14ca12ca6288660fd2d1ec55
Diffstat (limited to 'libutils/String8.cpp')
0 files changed, 0 insertions, 0 deletions