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

Issue 466153005: Fix buffer size offset error in PNG_Predictor (Closed)

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

Description

Fix buffer size offset error in PNG_Predictor BUG=393602 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/d726307

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

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

Messages

Total messages: 10 (0 generated)
Bo Xu
Tom, please review this one, thanks.
6 years, 4 months ago (2014-08-14 17:16:45 UTC) #1
Tom Sepez
On 2014/08/14 17:16:45, Bo Xu wrote: > Tom, please review this one, thanks. This doesn't ...
6 years, 4 months ago (2014-08-14 19:57:21 UTC) #2
Tom Sepez
Inspection of the faulting line (413) indicates that a one byte read beyond the buffer ...
6 years, 4 months ago (2014-08-14 20:10:20 UTC) #3
Tom Sepez
Looking at this, I think the byte_cnt++ at line 467 needs to move up to ...
6 years, 4 months ago (2014-08-14 20:53:04 UTC) #4
Tom Sepez
On 2014/08/14 20:53:04, Tom Sepez wrote: > Looking at this, I think the byte_cnt++ at ...
6 years, 4 months ago (2014-08-14 20:56:51 UTC) #5
Bo Xu
I agree should move |byte_cnt| up to track for |tag| right after it is used. ...
6 years, 4 months ago (2014-08-14 21:49:17 UTC) #6
Tom Sepez
LGTM with nit. Feel free to commit this once you address the nit without re-review. ...
6 years, 4 months ago (2014-08-15 16:51:30 UTC) #7
Bo Xu
https://codereview.chromium.org/466153005/diff/40001/core/src/fxcodec/codec/fx_codec_flate.cpp File core/src/fxcodec/codec/fx_codec_flate.cpp (right): https://codereview.chromium.org/466153005/diff/40001/core/src/fxcodec/codec/fx_codec_flate.cpp#newcode412 core/src/fxcodec/codec/fx_codec_flate.cpp:412: byte_cnt++; If put byte_cnt++ on line 401, then when ...
6 years, 4 months ago (2014-08-15 18:08:10 UTC) #8
Tom Sepez
https://codereview.chromium.org/466153005/diff/40001/core/src/fxcodec/codec/fx_codec_flate.cpp File core/src/fxcodec/codec/fx_codec_flate.cpp (right): https://codereview.chromium.org/466153005/diff/40001/core/src/fxcodec/codec/fx_codec_flate.cpp#newcode412 core/src/fxcodec/codec/fx_codec_flate.cpp:412: byte_cnt++; Yep. Good catch.
6 years, 4 months ago (2014-08-15 19:02:13 UTC) #9
Bo Xu
6 years, 4 months ago (2014-08-15 19:24:52 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 manually as d726307 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698