Commit Graph

5 Commits

Author SHA1 Message Date
wolfbeast 8dd8df90b9 Check for contiguous buffer state.
When we are reading large image data (i.e.: people using webp to stream
video instead of the native webm format; I'm looking at you, Giphy!)
we can run into the situation where the available data is not in a
contiguous buffer, and we need to either buffer additional data or
re-buffer from the start. If we don't do this, we can run into issues
because of buffer over-reading (causing corrupted data if allocated or
more likely crashes if not allocated).
Re-buffering is expensive, but this should be rare and limited to
dealing with unintended use for animated image formats.

This resolves #940.
2019-01-21 15:56:16 +01:00
wolfbeast 3417e581ce Bug 1462355 - Part 1c. Make individual image decoders to use updated Decoder/SurfacePipe methods.
Extend this change to nsWebPDecoder.cpp
2018-11-21 13:34:01 +01:00
wolfbeast 238b430ec0 Port WebP decoder changes.
This breaks animated WebP for the moment, but adds QCMS color management and lexer changes.
Tag #831
2018-11-20 19:59:25 +01:00
wolfbeast 05e8038c08 Free the decoded image buffer before deleting the WebP decoder.
This should solve #483.
2018-06-13 13:45:56 +02:00
wolfbeast 3e0351aa49 Implement WebP image decoder. 2018-02-03 10:03:50 +01:00