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

Issue 509993003: Restrict index not be greater than row_size in TIFF_PredictLine (Closed)

Created:
6 years, 3 months ago by Bo Xu
Modified:
5 years, 9 months ago
Reviewers:
Tom Sepez, jun_fang
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

Restrict index not be greater than row_size in TIFF_PredictLine There is not strict way to limit invalid value of |Colors| from dictionary. We can make sure |index| does not go out of boundary of row_size. BUG=407614 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/fdcc874

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : Remove index_pre and col_pre #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M core/src/fxcodec/codec/fx_codec_flate.cpp View 1 2 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Bo Xu
bo_xu@foxitsoftware.com changed reviewers: + jun_fang@foxitsoftware.com, tsepez@chromium.org
6 years, 3 months ago (2014-08-27 21:18:28 UTC) #1
Bo Xu
On 2014/08/27 21:18:28, Bo Xu wrote: > mailto:bo_xu@foxitsoftware.com changed reviewers: > + mailto:jun_fang@foxitsoftware.com, mailto:tsepez@chromium.org Tom, ...
6 years, 3 months ago (2014-08-27 21:18:49 UTC) #2
Tom Sepez
https://codereview.chromium.org/509993003/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp File core/src/fxcodec/codec/fx_codec_flate.cpp (right): https://codereview.chromium.org/509993003/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp#newcode531 core/src/fxcodec/codec/fx_codec_flate.cpp:531: if (index > row_size) { Don't you want >= ...
6 years, 3 months ago (2014-08-27 21:20:35 UTC) #3
Tom Sepez
https://codereview.chromium.org/509993003/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp File core/src/fxcodec/codec/fx_codec_flate.cpp (right): https://codereview.chromium.org/509993003/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp#newcode527 core/src/fxcodec/codec/fx_codec_flate.cpp:527: int row_bits = BitsPerComponent * Colors * Columns; nit: ...
6 years, 3 months ago (2014-08-27 21:25:45 UTC) #4
Tom Sepez
https://codereview.chromium.org/509993003/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp File core/src/fxcodec/codec/fx_codec_flate.cpp (right): https://codereview.chromium.org/509993003/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp#newcode535 core/src/fxcodec/codec/fx_codec_flate.cpp:535: int col_pre = (col == 0) ? 8 : ...
6 years, 3 months ago (2014-08-27 21:35:33 UTC) #5
Bo Xu
https://codereview.chromium.org/509993003/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp File core/src/fxcodec/codec/fx_codec_flate.cpp (right): https://codereview.chromium.org/509993003/diff/1/core/src/fxcodec/codec/fx_codec_flate.cpp#newcode527 core/src/fxcodec/codec/fx_codec_flate.cpp:527: int row_bits = BitsPerComponent * Colors * Columns; On ...
6 years, 3 months ago (2014-08-27 22:13:18 UTC) #6
Tom Sepez
Good. LGTM. Thanks.
6 years, 3 months ago (2014-08-27 22:17:56 UTC) #7
Tom Sepez
On 2014/08/27 22:17:56, Tom Sepez wrote: > Good. LGTM. Thanks. Optionally, if you want to ...
6 years, 3 months ago (2014-08-27 22:23:48 UTC) #8
Bo Xu
On 2014/08/27 22:23:48, Tom Sepez wrote: > On 2014/08/27 22:17:56, Tom Sepez wrote: > > ...
6 years, 3 months ago (2014-08-27 22:32:39 UTC) #9
Tom Sepez
On 2014/08/27 22:32:39, Bo Xu wrote: > On 2014/08/27 22:23:48, Tom Sepez wrote: > > ...
6 years, 3 months ago (2014-08-27 22:40:23 UTC) #10
Bo Xu
On 2014/08/27 22:40:23, Tom Sepez wrote: > On 2014/08/27 22:32:39, Bo Xu wrote: > > ...
6 years, 3 months ago (2014-08-27 22:46:16 UTC) #11
Bo Xu
Patchset #4 (id:60001) has been deleted
6 years, 3 months ago (2014-08-27 22:54:01 UTC) #12
Tom Sepez
On 2014/08/27 22:54:01, Bo Xu wrote: > Patchset #4 (id:60001) has been deleted Let's go ...
6 years, 3 months ago (2014-08-27 22:56:01 UTC) #13
Bo Xu
Committed patchset #3 (id:40001) manually as fdcc874 (presubmit successful).
6 years, 3 months ago (2014-08-27 23:01:46 UTC) #14
Bo Xu
6 years, 3 months ago (2014-08-27 23:03:00 UTC) #15
Message was sent while issue was closed.
On 2014/08/27 22:56:01, Tom Sepez wrote:
> On 2014/08/27 22:54:01, Bo Xu wrote:
> > Patchset #4 (id:60001) has been deleted
> Let's go with PS #2.  I think that's clearest.

OK. PS #2 landed, although #14 says PS #3

Powered by Google App Engine
This is Rietveld 408576698