fc4ee229a6
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> |
||
---|---|---|
.. | ||
b33251605.bmp | ||
b33651913.bmp | ||
b34778578.bmp | ||
b37623797.ico | ||
b38116746.ico | ||
bad_palette.png | ||
ico_fuzz0.ico | ||
ico_fuzz1.ico | ||
ico_leak01.ico | ||
int_overflow.ico | ||
invalid-offset.webp | ||
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 |