commit | 9bd7afc0a1de9589c13355178b6edc709bd0bddf | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Mon Apr 27 12:13:33 2015 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Wed May 27 10:20:03 2015 -0700 |
tree | 910fe8e6e37e4e91dd05019bca1e41108bdad62e | |
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