From d0375bc4607f9d3f2ec427771e90ec7d284c174d Mon Sep 17 00:00:00 2001 From: msarett Date: Wed, 12 Aug 2015 08:08:56 -0700 Subject: Fix bmp RLE "bug" Chromium's test suite contains an RLE image that reports a certain file size in the header, but then contains additional encoded data. Our bmp decoder would only decode half of the image, before stopping. With this fix, we check for additional data before returning kIncompleteInput. If this lands, I will upload the test image to the bots. Also adding an invalid image test to CodexTest. BUG=skia: Review URL: https://codereview.chromium.org/1273853004 --- resources/invalid_images/mask-bmp-ico.ico | Bin 0 -> 67660 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 resources/invalid_images/mask-bmp-ico.ico (limited to 'resources') diff --git a/resources/invalid_images/mask-bmp-ico.ico b/resources/invalid_images/mask-bmp-ico.ico new file mode 100644 index 0000000000..159699b21a Binary files /dev/null and b/resources/invalid_images/mask-bmp-ico.ico differ -- cgit v1.2.3