Index: tests/ColorSpaceTest.cpp |
diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp |
index 66860da590d12dd4838ce0a714514b3cb18f8d50..3a33c1730c947ed68aa74e662a56f95f59fab3f2 100644 |
--- a/tests/ColorSpaceTest.cpp |
+++ b/tests/ColorSpaceTest.cpp |
@@ -259,3 +259,10 @@ DEF_TEST(ColorSpace_Equals, r) { |
REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), upperRight.get())); |
REPORTER_ASSERT(r, !SkColorSpace::Equals(upperRight.get(), adobe.get())); |
} |
+ |
+DEF_TEST(ColorSpaceCRBug, 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()); |
+} |