diff options
| author | henry.uh_chen <henry.uh_chen@htc.com> | 2014-07-03 20:40:22 +0800 |
|---|---|---|
| committer | Chris Craik <ccraik@google.com> | 2014-07-22 13:46:17 -0700 |
| commit | 53001ca3a629c0069f4fdac44f7711ad4a0c395a (patch) | |
| tree | 65e3ba7fc83eb91845b5657ec1ada0df9e58578f /docs/html/sdk/api_diff/3/changes | |
| parent | 94ca6cd7c932689b8018d1b118ddcd6b7a9eab27 (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.
Cherry-pick of 3a1bffa835f279628e50385af3c85789bc737f64 from AOSP
Change-Id: I6970c27de412110a3035d0a783112c4cd3ebc35b
Diffstat (limited to 'docs/html/sdk/api_diff/3/changes')
0 files changed, 0 insertions, 0 deletions
