DescriptionFix fragmented image signature handling
ImageDecoder::determineImageType() is currently only examining the first
buffer segment (getSomeData). But the signature is not guaranteed to be contiguous,
nor do we ever re-consolidate the buffer after receiving more data.
As a consequence, when the signature is fragmented (e.g. due to a slow
image load), we cannot detect the image type - even after all the data is
later received.
Refactor determineImageType() to consolidate the signature when needed.
BUG=637556
R=pkasting@chromium.org,scroggo@chromium.org,schenney@chromium.org
Review-Url: https://codereview.chromium.org/2252723003
Cr-Commit-Position: refs/heads/master@{#412631}
(cherry picked from commit 1b80a74055acae8a0296afe644513f52e34dec79)
Committed: https://chromium.googlesource.com/chromium/src/+/560b2ab7f31013f1a0ad9f0c174cb1ccd267e132
Patch Set 1 #
Messages
Total messages: 5 (2 generated)
|