diff options
Diffstat (limited to 'tests/CodexTest.cpp')
-rw-r--r-- | tests/CodexTest.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/CodexTest.cpp b/tests/CodexTest.cpp index 7e6d950430..ead679544f 100644 --- a/tests/CodexTest.cpp +++ b/tests/CodexTest.cpp @@ -1003,3 +1003,15 @@ DEF_TEST(Codec_jpeg_rewind, r) { SkCodec::Result result = codec->getPixels(codec->getInfo(), pixelStorage.get(), rowBytes); REPORTER_ASSERT(r, SkCodec::kSuccess == result); } + +DEF_TEST(Codec_InvalidRLEBmp, r) { + auto* stream = GetResourceAsStream("invalid_images/b33251605.bmp"); + if (!stream) { + return; + } + + SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream)); + REPORTER_ASSERT(r, codec); + + test_info(r, codec.get(), codec->getInfo(), SkCodec::kIncompleteInput, nullptr); +} |