| commit | 42856eb4f11a13391fbbeb80481d543568404cd7 | [log] [tgz] |
|---|---|---|
| author | henry.uh_chen <henry.uh_chen@htc.com> | Thu Jul 03 20:40:22 2014 +0800 |
| committer | Chen Henry <henry.uh_chen@htc.com> | Thu Jul 03 12:44:47 2014 +0000 |
| tree | 4a0c8ebf5aa7b55504f2e8be40f972706811419b | |
| parent | 1dc550fa7333257a130d71866be37181f8ee553b [diff] |
[Bitmap] Add null pointer protection in Bitmap_sameAs() Symptom: SkBitmap::getAddr(int, int) may return NULL due to unrecognized config (ex: kRLE_Index8_Config). This will cause memcmp method to crash. Since bm0 and bm1 both have pixel data() (have passed NULL == getPixels() check), those 2 bitmaps should be valid (only unrecognized), we return JNI_FALSE to warn user those 2 unrecognized config bitmaps may be different. Change-Id: I6970c27de412110a3035d0a783112c4cd3ebc35b