Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Issue 2260703002: Fix fragmented image signature handling (Closed)

Created:
4 years, 4 months ago by f(malita)
Modified:
4 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2785
Target Ref:
refs/pending/branch-heads/2785
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -10 lines) Patch
M third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp View 3 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
f(malita)
Manual cherry-pick of http://crrev.com/2252723003, fix-only. Verified on a local 2785 build.
4 years, 4 months ago (2016-08-19 00:04:29 UTC) #2
Peter Kasting
LGTM
4 years, 4 months ago (2016-08-19 00:05:09 UTC) #3
f(malita)
4 years, 4 months ago (2016-08-19 00:08:10 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
560b2ab7f31013f1a0ad9f0c174cb1ccd267e132.

Powered by Google App Engine
This is Rietveld 408576698