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

Issue 1180013006: Do not consume input of corrupt progressive JPEG (Closed)

Created:
5 years, 6 months ago by Noel Gordon
Modified:
5 years, 6 months ago
CC:
blink-reviews, urvang
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Do not consume input of corrupt progressive JPEG Add an error emitter override, and use it to count "Corrupt JPEG" warning messages from libjpeg during progressive JPEG decoding to prevent reading ahead with jpeg_consume_input() if the JPEG is corrupt: the input data is bogus and can result in different renderings of the same image otherwise. Also, during initialization, set the m_info fields for a progressive JPEG (aka multi-scan or buffered image) decode to default values. Add FIXME. BUG=500567 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197353

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -2 lines) Patch
M Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp View 1 6 chunks +33 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
Noel Gordon
5 years, 6 months ago (2015-06-15 14:19:48 UTC) #2
Noel Gordon
Not possible to auto test this as we found out in http://crbug.com/398235 but with this ...
5 years, 6 months ago (2015-06-15 14:21:49 UTC) #3
scroggo_chromium
lgtm https://codereview.chromium.org/1180013006/diff/1/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp File Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp (right): https://codereview.chromium.org/1180013006/diff/1/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp#newcode319 Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp:319: m_err.pub.emit_message = emit_message; Besides error reporting, it looks ...
5 years, 6 months ago (2015-06-15 15:57:06 UTC) #5
Peter Kasting
Leon's questions are the same ones I would ask, so I'm going to LGTM this ...
5 years, 6 months ago (2015-06-15 21:31:54 UTC) #7
Noel Gordon
https://codereview.chromium.org/1180013006/diff/1/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp File Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp (right): https://codereview.chromium.org/1180013006/diff/1/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp#newcode319 Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp:319: m_err.pub.emit_message = emit_message; On 2015/06/15 15:57:06, scroggo_chromium wrote: > ...
5 years, 6 months ago (2015-06-18 12:10:07 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180013006/20001
5 years, 6 months ago (2015-06-18 12:17:04 UTC) #11
scroggo_chromium
lgtm https://codereview.chromium.org/1180013006/diff/1/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp File Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp (right): https://codereview.chromium.org/1180013006/diff/1/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp#newcode498 Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp:498: m_info.enable_external_quant = false; On 2015/06/18 12:10:07, noel gordon ...
5 years, 6 months ago (2015-06-18 13:19:24 UTC) #12
Noel Gordon
On 2015/06/18 13:19:24, scroggo_chromium wrote: > lgtm > > https://codereview.chromium.org/1180013006/diff/1/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp > File Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp (right): > ...
5 years, 6 months ago (2015-06-18 13:36:52 UTC) #13
Noel Gordon
On 2015/06/18 13:19:24, scroggo_chromium wrote: > > Anyho, TL,DR; they are here for completeness. We ...
5 years, 6 months ago (2015-06-18 13:38:45 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-18 13:39:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180013006/20001
5 years, 6 months ago (2015-06-18 13:46:10 UTC) #18
Noel Gordon
Updated changelog.
5 years, 6 months ago (2015-06-18 13:47:35 UTC) #19
commit-bot: I haz the power
5 years, 6 months ago (2015-06-18 13:49:51 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197353

Powered by Google App Engine
This is Rietveld 408576698