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)
1 file changed