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

Issue 1039503003: Add helper to validate JPEG decode subsampling factors (Closed)

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

Description

Add helper to validate JPEG subsampling factors Use it to turn the invalid horizontal/vertical subsampling factor 3 to a 1, which is fine for both the YUV decoding path (it won't turn on if any of the component subsamplings is 3) and the normal JPEG decode path. TEST=Covered by the test added in r192900 BUG=398235 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192980

Patch Set 1 #

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

Messages

Total messages: 18 (5 generated)
Noel Gordon
5 years, 8 months ago (2015-03-29 09:45:55 UTC) #2
Noel Gordon
Note that subsampling factors are limited to [1..4] by the JPEG decode library, producing a ...
5 years, 8 months ago (2015-03-29 09:51:20 UTC) #3
Noel Gordon
Test harness setup for this now -> we can go anyway we like in this ...
5 years, 8 months ago (2015-04-01 05:16:07 UTC) #4
sugoi1
On 2015/04/01 05:16:07, noel gordon wrote: > Test harness setup for this now -> we ...
5 years, 8 months ago (2015-04-01 12:11:51 UTC) #5
Noel Gordon
On 2015/04/01 12:11:51, sugoi1 wrote: > On 2015/04/01 05:16:07, noel gordon wrote: > > Test ...
5 years, 8 months ago (2015-04-01 16:34:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1039503003/1
5 years, 8 months ago (2015-04-01 16:35:15 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 8 months ago (2015-04-01 16:35:18 UTC) #10
Noel Gordon
On 2015/04/01 16:35:18, I haz the power (commit-bot) wrote: > No LGTM from a valid ...
5 years, 8 months ago (2015-04-01 16:36:40 UTC) #12
pdr.
On 2015/04/01 at 16:36:40, noel wrote: > On 2015/04/01 16:35:18, I haz the power (commit-bot) ...
5 years, 8 months ago (2015-04-01 18:08:37 UTC) #13
Noel Gordon
On 2015/04/01 18:08:37, pdr wrote: > On 2015/04/01 at 16:36:40, noel wrote: > > On ...
5 years, 8 months ago (2015-04-01 23:57:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1039503003/1
5 years, 8 months ago (2015-04-01 23:59:04 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=192980
5 years, 8 months ago (2015-04-02 01:44:51 UTC) #17
Noel Gordon
5 years, 8 months ago (2015-04-08 05:12:36 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/1069083003/ by noel@chromium.org.

The reason for reverting is: Per the bug, Factor 3 images are acceptable to
libjpeg6b and users can even create them using its well-known cjpeg tool. .

Powered by Google App Engine
This is Rietveld 408576698