skia2/resources/invalid_images
Leon Scroggins III 0b24cbd9db Stop supporting kUnknown_BmpHeaderType
In SkBmpCodec, if the header size does not match a known header,
stop trying to create an SkCodec. We do not know of any BMPs with
arbitrarily sized headers, so this should not cause any real
regressions.

In addition, this fixes a bug where we attempt to read too much data
from a file. Since we attempt to read the header size in one read,
and a size reported by the "BMP" may be larger than SSIZE_MAX, this
will crash when reading from a file.

Add a test.

BUG:b/33651913

Change-Id: I0f3292db3124dc5ac5cbdbc07196bda130a49ba7
Reviewed-on: https://skia-review.googlesource.com/6150
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Matt Sarett <msarett@google.com>
2016-12-15 21:48:03 +00:00
..
b33651913.bmp Stop supporting kUnknown_BmpHeaderType 2016-12-15 21:48:03 +00:00
ico_fuzz0.ico Ico security issues fix 2015-03-13 08:07:01 -07:00
ico_fuzz1.ico Ico security issues fix 2015-03-13 08:07:01 -07:00
ico_leak01.ico Ico security issues fix 2015-03-13 08:07:01 -07:00
int_overflow.ico Avoid integer overflow in SkIcoCodec and SkImageInfo 2016-10-17 21:19:54 +00:00
many-progressive-scans.jpg Fail jpeg decodes on too many progressive scans 2016-11-08 21:39:15 +00:00
mask-bmp-ico.ico Fix bmp RLE "bug" 2015-08-12 08:08:56 -07:00
sigabort_favicon.ico Add tests (and fix!) for known bad ICO files. 2014-11-10 13:12:25 -08:00
sigsegv_favicon_2.ico Add tests (and fix!) for known bad ICO files. 2014-11-10 13:12:25 -08:00
sigsegv_favicon.ico Add tests (and fix!) for known bad ICO files. 2014-11-10 13:12:25 -08:00
skbug3429.webp Use the upstream version of libwebp, v0.4.3. 2015-07-10 09:32:09 -07:00
skbug3442.webp Use the upstream version of libwebp, v0.4.3. 2015-07-10 09:32:09 -07:00
skbug5887.gif SkGifCodec: do not write off the end of memory when repeatCount > 1 2016-10-26 00:43:27 +00:00
skbug6046.gif SkGifCodec: intersect frameRect with image size 2016-12-13 14:00:17 +00:00