diff options
author | Leon Scroggins III <scroggo@google.com> | 2015-05-21 09:48:15 -0400 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2015-05-21 12:20:26 -0400 |
commit | 462dd010467fdf1ab0cb49e021a92d14f2163c8c (patch) | |
tree | 7216d95676b4bfaef4a3b9e66f47ec28efa8f3f1 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions