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_fuzz1.ico
ico_leak01.ico
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
sigsegv_favicon_2.ico
sigsegv_favicon.ico
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