Original bug fix was in:
https://codereview.chromium.org/
2230163002
BUG:636268
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2243143002
Review-Url: https://codereview.chromium.org/
2243143002
REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), upperRight.get()));
REPORTER_ASSERT(r, !SkColorSpace::Equals(upperRight.get(), adobe.get()));
}
+
+DEF_TEST(ColorSpace_CRBug, r) {
+ sk_sp<SkData> data = SkData::MakeFromFileName(
+ GetResourcePath("invalid_images/crbug636268.png").c_str());
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data.get()));
+ REPORTER_ASSERT(r, codec.get());
+}