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

Issue 15914009: More tolerant about malformed GIF files (Closed)

Created:
7 years, 6 months ago by Alpha Left Google
Modified:
7 years, 6 months ago
CC:
blink-reviews, jeez, eae+blinkwatch
Visibility:
Public.

Description

More tolerant about malformed GIF files GIF image decoder had became more strict since M27. This caused some malformed GIFs to regress. This change matches Mozilla's handling of these malformed GIF files terminating file parsing as if the file were correct. This allows those malformed GIF files to show. BUG=242957 R=jamesr@chromium.org, pkasting@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151421

Patch Set 1 #

Patch Set 2 : comments #

Total comments: 5

Patch Set 3 : done #

Patch Set 4 : test file #

Patch Set 5 : added test file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -12 lines) Patch
M Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp View 1 2 3 2 chunks +25 lines, -3 lines 0 comments Download
A + Source/WebKit/chromium/tests/data/radient-bad-terminator.gif View 1 2 3 Binary file 0 comments Download
M Source/core/platform/image-decoders/gif/GIFImageReader.cpp View 1 2 2 chunks +8 lines, -9 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Alpha Left Google
7 years, 6 months ago (2013-05-28 22:25:11 UTC) #1
Peter Kasting
LGTM https://codereview.chromium.org/15914009/diff/2001/Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp File Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp (right): https://codereview.chromium.org/15914009/diff/2001/Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp#newcode319 Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp:319: if (count++ == 1) { Nit: I think ...
7 years, 6 months ago (2013-05-29 04:30:17 UTC) #2
Alpha Left Google
https://codereview.chromium.org/15914009/diff/2001/Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp File Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp (right): https://codereview.chromium.org/15914009/diff/2001/Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp#newcode319 Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp:319: if (count++ == 1) { On 2013/05/29 04:30:17, Peter ...
7 years, 6 months ago (2013-05-29 19:38:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/15914009/9001
7 years, 6 months ago (2013-05-29 19:40:25 UTC) #4
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=800
7 years, 6 months ago (2013-05-29 19:55:49 UTC) #5
Alpha Left Google
+jamesr for OWNERS approval in Source/WebKit/chromium
7 years, 6 months ago (2013-05-29 19:58:27 UTC) #6
Peter Kasting
https://codereview.chromium.org/15914009/diff/2001/Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp File Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp (right): https://codereview.chromium.org/15914009/diff/2001/Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp#newcode319 Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp:319: if (count++ == 1) { On 2013/05/29 19:38:58, Alpha ...
7 years, 6 months ago (2013-05-29 20:02:53 UTC) #7
Alpha Left Google
On 2013/05/29 20:02:53, Peter Kasting wrote: > https://codereview.chromium.org/15914009/diff/2001/Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp > File Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp (right): > > https://codereview.chromium.org/15914009/diff/2001/Source/WebKit/chromium/tests/GIFImageDecoderTest.cpp#newcode319 ...
7 years, 6 months ago (2013-05-29 20:05:32 UTC) #8
jamesr
For layout tests, I definitely prefer sharing existing files if they exist. This is a ...
7 years, 6 months ago (2013-05-29 21:17:21 UTC) #9
Alpha Left Google
On 2013/05/29 21:17:21, jamesr wrote: > For layout tests, I definitely prefer sharing existing files ...
7 years, 6 months ago (2013-05-29 21:21:30 UTC) #10
Alpha Left Google
Added test file and updated test case.
7 years, 6 months ago (2013-05-29 21:32:23 UTC) #11
Peter Kasting
LGTM
7 years, 6 months ago (2013-05-29 21:33:11 UTC) #12
jamesr
lgtm2
7 years, 6 months ago (2013-05-29 21:35:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/15914009/21001
7 years, 6 months ago (2013-05-29 21:37:02 UTC) #14
commit-bot: I haz the power
Can't process patch for file Source/WebKit/chromium/tests/data/radient-bad-terminator.gif. Binary file support is temporarilly disabled due to a ...
7 years, 6 months ago (2013-05-29 21:37:03 UTC) #15
Alpha Left Google
Committed patchset #5 manually as r151421 (presubmit successful).
7 years, 6 months ago (2013-05-29 22:50:47 UTC) #16
Noel Gordon
Are the image unit-tests run under the blink valgrind, tsan, and asan bots, btw?
7 years, 6 months ago (2013-05-30 03:23:13 UTC) #17
jamesr
On 2013/05/30 03:23:13, Noel Gordon (Google) wrote: > Are the image unit-tests run under the ...
7 years, 6 months ago (2013-05-30 04:40:59 UTC) #18
Noel Gordon
7 years, 6 months ago (2013-06-13 05:02:35 UTC) #19
Message was sent while issue was closed.
They don't run that target; they do run layout tests.  I'm sure some GIF changes
are not testable with a layout test, but this change could be and that'd help us
maintain/gain coverage on those bots.

Powered by Google App Engine
This is Rietveld 408576698