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

Issue 477873003: Fix a hang issue due to inconsistent page number in the test file (Closed)

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

Description

Fix a hang issue due to inconsistent page number in the test file Pdfium reads the page number from the field of '/Count' but it can't load the number assigned by this field due to the damaged data. Add a check to ensure that the required page should be one of loaded pages. BUG=406090 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/aeacba4

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 1 chunk +1 line, -1 line 0 comments Download
M samples/pdfium_test.cc View 1 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
jun_fang
Hi Tom, please review this change. Thanks!
6 years, 4 months ago (2014-08-21 23:31:31 UTC) #1
Tom Sepez
LGTM with nits. https://codereview.chromium.org/477873003/diff/1/samples/pdfium_test.cc File samples/pdfium_test.cc (right): https://codereview.chromium.org/477873003/diff/1/samples/pdfium_test.cc#newcode307 samples/pdfium_test.cc:307: size_t renderedPages = 0; nit: we ...
6 years, 4 months ago (2014-08-22 00:23:31 UTC) #2
jun_fang
Updated per your comments. Thanks! https://codereview.chromium.org/477873003/diff/1/samples/pdfium_test.cc File samples/pdfium_test.cc (right): https://codereview.chromium.org/477873003/diff/1/samples/pdfium_test.cc#newcode307 samples/pdfium_test.cc:307: size_t renderedPages = 0; ...
6 years, 4 months ago (2014-08-22 01:07:25 UTC) #3
jun_fang
On 2014/08/22 00:23:31, Tom Sepez wrote: > LGTM with nits. > > https://codereview.chromium.org/477873003/diff/1/samples/pdfium_test.cc > File ...
6 years, 4 months ago (2014-08-22 23:42:47 UTC) #4
Tom Sepez
Yes. (LGTM with nits means I trust you to be able to fix the simple ...
6 years, 4 months ago (2014-08-22 23:44:46 UTC) #5
jun_fang
On 2014/08/22 23:44:46, Tom Sepez wrote: > Yes. (LGTM with nits means I trust you ...
6 years, 4 months ago (2014-08-23 00:01:03 UTC) #6
jun_fang
6 years, 4 months ago (2014-08-23 00:04:46 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as aeacba4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698