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

Issue 440563003: Fix buffer size boundary check offset by 1 (Closed)

Created:
6 years, 4 months ago by Bo Xu
Modified:
6 years, 4 months ago
Reviewers:
jun_fang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

Fix buffer size boundary check offset by 1 When newPos == file size, the current block will not be read or Get. If this block is a crucial part of the document (like m_pTrailer), the program will exit with parse error and the document will not be rendered. BUG=None R=jun_fang@foxitsoftware.com Committed: https://pdfium.googlesource.com/pdfium/+/465c2a8

Patch Set 1 #

Patch Set 2 : Clean Format #

Patch Set 3 : More correction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -25 lines) Patch
M fpdfsdk/src/fpdfview.cpp View 1 2 2 chunks +21 lines, -25 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Bo Xu
6 years, 4 months ago (2014-08-02 20:32:53 UTC) #1
jun_fang
On 2014/08/02 20:32:53, Bo Xu wrote: LGTM
6 years, 4 months ago (2014-08-02 22:09:48 UTC) #2
Bo Xu
6 years, 4 months ago (2014-08-02 22:13:49 UTC) #3
Message was sent while issue was closed.
Committed patchset #3 manually as 465c2a8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698