commit | 462dd010467fdf1ab0cb49e021a92d14f2163c8c | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Thu May 21 09:48:15 2015 -0400 |
committer | Leon Scroggins III <scroggo@google.com> | Thu May 21 12:20:26 2015 -0400 |
tree | 7216d95676b4bfaef4a3b9e66f47ec28efa8f3f1 | |
parent | d457c71eca2a0522793376a873dcdad318a2f798 [diff] |
Fix overflow in NinePatchImpl. Cast numXDivs to a size_t before adding 1, so that if numXDivs is 255 it does not overflow. Move the calculation outside of alloca(). BUG:20727488 Change-Id: I2ecc9d650338acba7316554cb72195e02816b1f8