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

Issue 579363002: Fix Regression: Incomplete file loading is seen for multi page pdf files. (Closed)

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

Description

Fix Regression: Incomplete file loading is seen for multi page pdf files. This was introduced at PDFium revision 12a9940. There was a subtle logic change for null |parray|. BUG=415438 R=jun_fang@foxitsoftware.com Committed: https://pdfium.googlesource.com/pdfium/+/e0399c76ba1412926a3d55f6328a095c23467951

Patch Set 1 #

Patch Set 2 : untabify #

Total comments: 1

Patch Set 3 : Address comments. #

Patch Set 4 : nit: fix template syntax. #

Patch Set 5 : Endless tinkering: reduce scope of pStartNumObj, pCountObj. #

Total comments: 1

Patch Set 6 : untabify #

Patch Set 7 : Strange spacing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -12 lines) Patch
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 1 2 3 4 5 2 chunks +7 lines, -12 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
Tom Sepez
Jun, please take a look.
6 years, 3 months ago (2014-09-18 17:48:11 UTC) #2
jun_fang
https://codereview.chromium.org/579363002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): https://codereview.chromium.org/579363002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode1048 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:1048: nSegs = arrIndex.size(); arrIndex may be empty here. If ...
6 years, 3 months ago (2014-09-18 18:00:22 UTC) #3
Tom Sepez
https://codereview.chromium.org/579363002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode1048 > core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:1048: nSegs = > arrIndex.size(); > arrIndex may be empty here. If it's ...
6 years, 3 months ago (2014-09-18 18:02:34 UTC) #4
jun_fang
On 2014/09/18 18:02:34, Tom Sepez wrote: > https://codereview.chromium.org/579363002/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode1048 > > core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:1048: nSegs = > > ...
6 years, 3 months ago (2014-09-18 18:22:22 UTC) #5
Tom Sepez
> I missed to add the default value when |pArray == NULL| rather than adding ...
6 years, 3 months ago (2014-09-18 18:41:58 UTC) #6
Tom Sepez
Re PS#4: minor nit, but in the old days, C++ couldn't handle >> at the ...
6 years, 3 months ago (2014-09-18 18:48:24 UTC) #7
jun_fang
On 2014/09/18 18:48:24, Tom Sepez wrote: > Re PS#4: minor nit, but in the old ...
6 years, 3 months ago (2014-09-18 18:54:35 UTC) #8
Tom Sepez
Re PS#5: more tinkering, sorry. A quick check for any botches on that one and ...
6 years, 3 months ago (2014-09-18 18:59:10 UTC) #9
Tom Sepez
PS#6 fixes a botch.
6 years, 3 months ago (2014-09-18 19:00:34 UTC) #10
jun_fang
https://codereview.chromium.org/579363002/diff/80001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): https://codereview.chromium.org/579363002/diff/80001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode1036 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:1036: CPDF_Object* pCountObj = pArray->GetElement(i * 2 + 1); Nit: ...
6 years, 3 months ago (2014-09-18 19:02:50 UTC) #11
jun_fang
On 2014/09/18 19:02:50, jun_fang wrote: > https://codereview.chromium.org/579363002/diff/80001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp > File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): > > https://codereview.chromium.org/579363002/diff/80001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode1036 > ...
6 years, 3 months ago (2014-09-18 19:04:37 UTC) #12
Tom Sepez
6 years, 3 months ago (2014-09-18 19:12:01 UTC) #13
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as e0399c7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698