commit | e8c62fb484151f76ab88b1d5130f38de24ac8c14 | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Mon Apr 27 12:13:33 2015 -0700 |
committer | The Android Automerger <android-build@android.com> | Thu Aug 13 19:53:03 2015 -0700 |
tree | d9f0dd6e806932662c1a158f10a1363ec569ea60 | |
parent | 5b3aa21bc70d42b3fcb1764a1be04ab8db5ebfb9 [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