diff options
author | Leon Scroggins III <scroggo@google.com> | 2015-03-11 13:12:06 -0400 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2015-03-11 17:34:51 +0000 |
commit | ec419e0b731d2aa32f7f570e4021fe18b8be228d (patch) | |
tree | ad77c59e8fd8aea64cc838570682f9c9be3fc02a /docs/html/distribute/essentials | |
parent | 4771577a342214ef4f7373a8d37d015749b00347 (diff) | |
download | frameworks_base-ec419e0b731d2aa32f7f570e4021fe18b8be228d.zip frameworks_base-ec419e0b731d2aa32f7f570e4021fe18b8be228d.tar.gz frameworks_base-ec419e0b731d2aa32f7f570e4021fe18b8be228d.tar.bz2 |
Make Bitmap_createFromParcel check the color count.
When reading from the parcel, if the number of colors is invalid, early
exit.
Add two more checks: setInfo must return true, and Parcel::readInplace
must return non-NULL. The former ensures that the previously read values
(width, height, etc) were valid, and the latter checks that the Parcel
had enough data even if the number of colors was reasonable.
Also use an auto-deleter to handle deletion of the SkBitmap.
BUG=19666945
Change-Id: Icbd562d6d1f131a723724883fd31822d337cf5a6
Diffstat (limited to 'docs/html/distribute/essentials')
0 files changed, 0 insertions, 0 deletions