OSDN Git Service

Avoid SIGSEGV in Bitmap_writeToParcel.
authorJack Palevich <jackpal@google.com>
Mon, 13 Dec 2010 19:13:32 +0000 (11:13 -0800)
committerJack Palevich <jackpal@google.com>
Tue, 14 Dec 2010 01:21:12 +0000 (17:21 -0800)
commitdee4cb07a3652457e18a0bf4be57d2cedeca7359
treea220e8d123e7f6e0b5be972a1f9d75722ce8bfed
parent128b6ba93d0549fd2beff4482678e1229dc1cf3d
Avoid SIGSEGV in Bitmap_writeToParcel.

SkBitmap::getPixels() can return NULL. The rest of the JNI Bitmap
code treats this NULL as if the SkBitmap has transparent black
pixels. Bitmap_writeToParcel now does the same.

Change-Id: I5e70b42b3d22a8aea898ce342e590000325bd0f9
core/jni/android/graphics/Bitmap.cpp