commit | 07edc3b3b3caef7829850633f928ae05f6d49f3a | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Mon Apr 27 12:13:33 2015 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Fri May 15 13:09:39 2015 -0700 |
tree | cc2b7395e3824caac5c9527882c7875b9de56d90 | |
parent | eb19e766322fb57ccde989e0e35b0ac3e28a4ac2 [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