commit | 6af314724f51ad79a640844536c667bb83de5690 | [log] [tgz] |
---|---|---|
author | sugoi <sugoi@chromium.org> | Wed Jan 28 13:15:32 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Wed Jan 28 13:15:32 2015 -0800 |
tree | b1b8471429d0ac37cde935e098a1ddcfe3292b93 | |
parent | 5a3d92fca17b9d4d7763c6d24c72c74f7682881f [diff] |
Fixed clusterfuzz issue BUG=448423 Review URL: https://codereview.chromium.org/881423002
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp index c962aea..e77bbbd 100644 --- a/src/core/SkBitmap.cpp +++ b/src/core/SkBitmap.cpp
@@ -1232,6 +1232,9 @@ SkAutoTUnref<SkPixelRef> pr(SkMallocPixelRef::NewWithData(info, info.minRowBytes(), ctable.get(), data.get())); + if (!pr.get()) { + return false; + } bitmap->setInfo(pr->info()); bitmap->setPixelRef(pr, 0, 0); return true;