summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2015-05-21 09:48:15 -0400
committerLeon Scroggins III <scroggo@google.com>2015-05-21 12:20:26 -0400
commit462dd010467fdf1ab0cb49e021a92d14f2163c8c (patch)
tree7216d95676b4bfaef4a3b9e66f47ec28efa8f3f1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd457c71eca2a0522793376a873dcdad318a2f798 (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