• Adam Lesinski's avatar
    Prevent integer overflow when allocating native_handle_t · 9bd7afc0
    Adam Lesinski authored
    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
    9bd7afc0
native_handle.c 1.74 KB