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
Loading
Please register or sign in to comment