skia2/resources/invalid_images
Leon Scroggins III fc4ee229a6 Fix double delete in SkBmpCodec
Previously, if ReadHeader returned false, it deleted the input stream.
But there are a couple of cases where ReadHeader creates an SkCodec and
then returns false. The SkCodec deletes the stream, and then so does
NewFromStream.

Make sure that we do not double delete by only deleting if no SkCodec
was created.

Add a test, so such a double delete will be caught by the bots.

Bug: b/37623797
Change-Id: I787422c9af58f0b92ad9e9ef9ad87c54a12f5e31
Reviewed-on: https://skia-review.googlesource.com/23620
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2017-07-14 16:25:54 +00:00
..
b33251605.bmp Use fixed size buffer for RLE bmps 2017-01-19 14:21:02 +00:00
b33651913.bmp Stop supporting kUnknown_BmpHeaderType 2016-12-15 21:48:03 +00:00
b34778578.bmp Set a limit on the size for BMP images 2017-02-24 21:25:44 +00:00
b37623797.ico Fix double delete in SkBmpCodec 2017-07-14 16:25:54 +00:00
b38116746.ico Defend against ICOs with large BMPs embedded 2017-06-05 18:28:19 +00:00
bad_palette.png SkPngCodec: Do not return kInvalidConversion on corrupt png 2017-04-26 17:43:38 +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
invalid-offset.webp Reland "Respect canvas size and frame offset in webp decoder" 2017-02-07 22:40:13 +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