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 948163002: Indexed PNG decoding: Ensure color table is large enough that the bit depth of the image will not a… (Closed)

Created:
5 years, 10 months ago by David Lattimore
Modified:
5 years, 9 months ago
Reviewers:
rmistry, scroggo, mtklein
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Indexed PNG decoding: Ensure color table is large enough that the bit depth of the image will not allow reads beyond its end. BUG=skia:3440 R=rmistry@google.com, scroggo@google.com Committed: https://skia.googlesource.com/skia/+/493c1ce1cd406ef28683203146274154783452ce Committed: https://skia.googlesource.com/skia/+/78acf96a67db1fe64a89fa7207195d1a79efc0c3

Patch Set 1 #

Total comments: 12

Patch Set 2 : Moved input argument before output arguments + various changes to test. #

Patch Set 3 : Disable test on platforms that don't use libpng #

Total comments: 2

Patch Set 4 : Fixed comment in test #

Total comments: 5

Patch Set 5 : Fix indentation in test. Change test to only run on Unix. #

Patch Set 6 : Made test run on all platforms #

Patch Set 7 : Fixed argument order in some conditional Android code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -14 lines) Patch
M gyp/tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/images/SkImageDecoder_libpng.cpp View 1 2 3 4 5 6 6 chunks +18 lines, -14 lines 0 comments Download
A tests/IndexedPngOverflowTest.cpp View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (5 generated)
David Lattimore
Here's another change that I didn't mail. Thanks for the tip.
5 years, 9 months ago (2015-03-05 22:58:36 UTC) #2
scroggo
Besides the below comments the code looks good. https://codereview.chromium.org/948163002/diff/1/src/images/SkImageDecoder_libpng.cpp File src/images/SkImageDecoder_libpng.cpp (right): https://codereview.chromium.org/948163002/diff/1/src/images/SkImageDecoder_libpng.cpp#newcode102 src/images/SkImageDecoder_libpng.cpp:102: SkColorTable ...
5 years, 9 months ago (2015-03-05 23:23:31 UTC) #3
David Lattimore
After syncing, the test was failing. It seems that indexed PNGs with a size-0 palette ...
5 years, 9 months ago (2015-03-06 00:15:26 UTC) #4
scroggo
On 2015/03/06 00:15:26, David Lattimore wrote: > After syncing, the test was failing. It seems ...
5 years, 9 months ago (2015-03-06 19:52:21 UTC) #5
scroggo
Ravi, I seem to be unable to commit, even though it has an LGTM (from ...
5 years, 9 months ago (2015-03-06 19:58:24 UTC) #6
scroggo
On 2015/03/06 19:58:24, scroggo wrote: > Ravi, > > I seem to be unable to ...
5 years, 9 months ago (2015-03-06 19:59:00 UTC) #8
rmistry
On 2015/03/06 19:58:24, scroggo wrote: > Ravi, > > I seem to be unable to ...
5 years, 9 months ago (2015-03-06 20:50:56 UTC) #9
David Lattimore
On 2015/03/06 20:50:56, rmistry wrote: > On 2015/03/06 19:58:24, scroggo wrote: > > Ravi, > ...
5 years, 9 months ago (2015-03-09 00:50:38 UTC) #10
scroggo
On 2015/03/06 20:50:56, rmistry wrote: > It is because the CL is marked as "Private/Protected. ...
5 years, 9 months ago (2015-03-11 13:34:09 UTC) #11
rmistry
On 2015/03/11 13:34:09, scroggo wrote: > On 2015/03/06 20:50:56, rmistry wrote: > > It is ...
5 years, 9 months ago (2015-03-11 13:35:23 UTC) #12
scroggo
not LGTM. It looks like SK_BUILD_FOR_WIN is not a good check. https://codereview.chromium.org/948163002/diff/60001/tests/IndexedPngOverflowTest.cpp File tests/IndexedPngOverflowTest.cpp (right): ...
5 years, 9 months ago (2015-03-11 21:01:32 UTC) #13
David Lattimore
Thanks for the fix on my other CL. https://codereview.chromium.org/948163002/diff/40001/tests/IndexedPngOverflowTest.cpp File tests/IndexedPngOverflowTest.cpp (right): https://codereview.chromium.org/948163002/diff/40001/tests/IndexedPngOverflowTest.cpp#newcode8 tests/IndexedPngOverflowTest.cpp:8: // ...
5 years, 9 months ago (2015-03-11 21:47:21 UTC) #14
scroggo
Mike, this test is only interesting on ASAN. Does it make sense to only build ...
5 years, 9 months ago (2015-03-12 14:13:01 UTC) #16
mtklein
On 2015/03/12 14:13:01, scroggo wrote: > Mike, this test is only interesting on ASAN. Does ...
5 years, 9 months ago (2015-03-12 14:30:42 UTC) #17
scroggo
On 2015/03/12 14:30:42, mtklein wrote: > What's wrong with checking defined(SK_BUILD_FOR_WIN)? That should be the ...
5 years, 9 months ago (2015-03-12 14:42:49 UTC) #18
mtklein
On 2015/03/12 14:42:49, scroggo wrote: > On 2015/03/12 14:30:42, mtklein wrote: > > What's wrong ...
5 years, 9 months ago (2015-03-12 14:54:35 UTC) #19
scroggo
On 2015/03/12 14:54:35, mtklein wrote: > On 2015/03/12 14:42:49, scroggo wrote: > > On 2015/03/12 ...
5 years, 9 months ago (2015-03-12 14:57:51 UTC) #20
David Lattimore
On 2015/03/12 14:57:51, scroggo wrote: > On 2015/03/12 14:54:35, mtklein wrote: > > On 2015/03/12 ...
5 years, 9 months ago (2015-03-12 20:53:03 UTC) #21
scroggo
On 2015/03/12 20:53:03, David Lattimore wrote: > On 2015/03/12 14:57:51, scroggo wrote: > > On ...
5 years, 9 months ago (2015-03-12 20:56:14 UTC) #22
scroggo
On 2015/03/12 20:56:14, scroggo wrote: > On 2015/03/12 20:53:03, David Lattimore wrote: > > On ...
5 years, 9 months ago (2015-03-12 20:56:22 UTC) #23
scroggo
On 2015/03/12 20:56:14, scroggo wrote: > If I understand correctly, because this is a private/protected ...
5 years, 9 months ago (2015-03-13 14:07:36 UTC) #24
David Lattimore
On 2015/03/13 14:07:36, scroggo wrote: > Test passes on my mac. Thanks for trying that ...
5 years, 9 months ago (2015-03-15 23:01:10 UTC) #25
rmistry
On 2015/03/15 23:01:10, David Lattimore wrote: > On 2015/03/13 14:07:36, scroggo wrote: > > Test ...
5 years, 9 months ago (2015-03-15 23:11:10 UTC) #26
David Lattimore
On 2015/03/15 23:11:10, rmistry wrote: > On 2015/03/15 23:01:10, David Lattimore wrote: > > On ...
5 years, 9 months ago (2015-03-15 23:34:48 UTC) #27
rmistry
On 2015/03/15 23:34:48, David Lattimore wrote: > On 2015/03/15 23:11:10, rmistry wrote: > > On ...
5 years, 9 months ago (2015-03-16 11:12:58 UTC) #28
scroggo
Committed patchset #6 (id:100001) manually as 493c1ce1cd406ef28683203146274154783452ce (presubmit successful).
5 years, 9 months ago (2015-03-17 12:13:46 UTC) #29
scroggo
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/997183007/ by scroggo@google.com. ...
5 years, 9 months ago (2015-03-17 12:21:25 UTC) #30
scroggo
On 2015/03/17 12:21:25, scroggo wrote: > A revert of this CL (patchset #6 id:100001) has ...
5 years, 9 months ago (2015-03-17 12:28:47 UTC) #31
David Lattimore
Sorry about the breakage. I've uploaded a fix. It should now be possible to submit ...
5 years, 9 months ago (2015-03-17 23:32:34 UTC) #32
scroggo
On 2015/03/17 23:32:34, David Lattimore wrote: > Sorry about the breakage. I've uploaded a fix. ...
5 years, 9 months ago (2015-03-18 12:56:14 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/948163002/120001
5 years, 9 months ago (2015-03-18 12:56:35 UTC) #36
commit-bot: I haz the power
5 years, 9 months ago (2015-03-18 13:03:33 UTC) #37
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/78acf96a67db1fe64a89fa7207195d1a79efc0c3

Powered by Google App Engine
This is Rietveld 408576698