diff options
author | Matt Sarett <msarett@google.com> | 2017-02-03 15:24:19 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-03 21:45:30 +0000 |
commit | 0f33970c8d950a68b7d83cc626ac0500953d6b15 (patch) | |
tree | 84bb32aa8cd76d99b8ade490a05eb499e5e23afc /tests/CodecTest.cpp | |
parent | d1ac9823fd351ccb54f463273e5c34b6d719ea46 (diff) |
Respect canvas size and frame offset in webp decoder
BUG=skia:6185
Change-Id: Id543cb689a5e33b800ebbc18f4a234e78a4c4298
Reviewed-on: https://skia-review.googlesource.com/7800
Commit-Queue: Matt Sarett <msarett@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'tests/CodecTest.cpp')
-rw-r--r-- | tests/CodecTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/CodecTest.cpp b/tests/CodecTest.cpp index 4083cfa44b..8a4d6fc7ab 100644 --- a/tests/CodecTest.cpp +++ b/tests/CodecTest.cpp @@ -662,6 +662,8 @@ DEF_TEST(Codec_Empty, r) { test_invalid(r, "empty_images/zero-height.wbmp"); // This image is an ico with an embedded mask-bmp. This is illegal. test_invalid(r, "invalid_images/mask-bmp-ico.ico"); + // It is illegal for a webp frame to not be fully contained by the canvas. + test_invalid(r, "invalid_images/invalid-offset.webp"); #if defined(SK_CODEC_DECODES_RAW) && (!defined(_WIN32)) test_invalid(r, "empty_images/zero_height.tiff"); #endif |