0b24cbd9db
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> |
||
---|---|---|
.. | ||
b33651913.bmp | ||
ico_fuzz0.ico | ||
ico_fuzz1.ico | ||
ico_leak01.ico | ||
int_overflow.ico | ||
many-progressive-scans.jpg | ||
mask-bmp-ico.ico | ||
sigabort_favicon.ico | ||
sigsegv_favicon_2.ico | ||
sigsegv_favicon.ico | ||
skbug3429.webp | ||
skbug3442.webp | ||
skbug5887.gif | ||
skbug6046.gif |