commit | 6af4f7cc7875145194600eb63ca8fea1eba9a4ba | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Mon Apr 27 12:13:33 2015 -0700 |
committer | worker <worker@fairphone.com> | Fri Oct 30 17:02:11 2015 +0100 |
tree | c0bc14c47ea92bfde0618422457a0815b3f07510 | |
parent | bc3b337382bef89ed73c371dd9f954e0a5813f31 [diff] |
FP2-1575: Prevent integer overflow when allocating native_ha 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 (cherry picked from commit 07edc3b3b3caef7829850633f928ae05f6d49f3a)