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

Issue 2491583002: Fix receiving page, if it have not obj num. (Closed)

Created:
4 years, 1 month ago by snake
Modified:
4 years, 1 month ago
Reviewers:
Lei Zhang, dsinclair, npm
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Fix receiving page, if it have not obj num. In some PDF's the page may not have the obj num. For example: testing\corpus\fx\other\jetman_std.pdf in pdfium repository. And CPDF_Document::GetPage failed on second call for this page. Restart the traversing of pages, to fix this Also added test. Committed: https://pdfium.googlesource.com/pdfium/+/c0a47773d6dadeb8a39a6ced4ebbb1795e2e411f

Patch Set 1 #

Patch Set 2 : Fix comments and test name. #

Patch Set 3 : Fix signed/unsigned comparison #

Total comments: 16

Patch Set 4 : Fix receiving page, if it have not obj num. #

Total comments: 4

Patch Set 5 : Fix review issues #

Patch Set 6 : Fix review issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -1 line) Patch
M core/fpdfapi/parser/cpdf_document.cpp View 1 2 3 4 1 chunk +10 lines, -1 line 0 comments Download
M core/fpdfapi/parser/cpdf_document_unittest.cpp View 1 2 3 4 5 2 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (30 generated)
snake
4 years, 1 month ago (2016-11-09 18:16:15 UTC) #3
dsinclair
npm@ is this related to the stuff you were working on?
4 years, 1 month ago (2016-11-09 20:14:59 UTC) #30
Lei Zhang
Yes, I would also recommend npm as a reviewer. https://codereview.chromium.org/2491583002/diff/40001/core/fpdfapi/parser/cpdf_document.cpp File core/fpdfapi/parser/cpdf_document.cpp (right): https://codereview.chromium.org/2491583002/diff/40001/core/fpdfapi/parser/cpdf_document.cpp#newcode497 core/fpdfapi/parser/cpdf_document.cpp:497: ...
4 years, 1 month ago (2016-11-09 20:19:42 UTC) #31
snake
https://codereview.chromium.org/2491583002/diff/40001/core/fpdfapi/parser/cpdf_document.cpp File core/fpdfapi/parser/cpdf_document.cpp (right): https://codereview.chromium.org/2491583002/diff/40001/core/fpdfapi/parser/cpdf_document.cpp#newcode497 core/fpdfapi/parser/cpdf_document.cpp:497: // This can be happened, when page have not ...
4 years, 1 month ago (2016-11-09 20:30:41 UTC) #32
npm
I mostly assumed this was not the case, as this is stated in the PDF ...
4 years, 1 month ago (2016-11-09 20:32:56 UTC) #33
Lei Zhang
On 2016/11/09 20:32:56, npm wrote: > I mostly assumed this was not the case, as ...
4 years, 1 month ago (2016-11-09 20:39:58 UTC) #34
npm
On 2016/11/09 20:39:58, Lei Zhang (slow) wrote: > On 2016/11/09 20:32:56, npm wrote: > > ...
4 years, 1 month ago (2016-11-09 20:43:42 UTC) #35
snake
https://codereview.chromium.org/2491583002/diff/40001/core/fpdfapi/parser/cpdf_document.cpp File core/fpdfapi/parser/cpdf_document.cpp (right): https://codereview.chromium.org/2491583002/diff/40001/core/fpdfapi/parser/cpdf_document.cpp#newcode496 core/fpdfapi/parser/cpdf_document.cpp:496: if (nPagesToGo <= 0) { On 2016/11/09 20:32:56, npm ...
4 years, 1 month ago (2016-11-09 20:46:47 UTC) #36
npm
Looks good but I still think we should not use this case as our default ...
4 years, 1 month ago (2016-11-09 21:55:03 UTC) #37
snake
https://codereview.chromium.org/2491583002/diff/40001/core/fpdfapi/parser/cpdf_document.cpp File core/fpdfapi/parser/cpdf_document.cpp (right): https://codereview.chromium.org/2491583002/diff/40001/core/fpdfapi/parser/cpdf_document.cpp#newcode502 core/fpdfapi/parser/cpdf_document.cpp:502: // TODO(art-snake): optimize this. On 2016/11/09 21:55:03, npm wrote: ...
4 years, 1 month ago (2016-11-09 22:39:47 UTC) #38
npm
lgtm
4 years, 1 month ago (2016-11-09 22:48:22 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2491583002/40002
4 years, 1 month ago (2016-11-09 23:06:25 UTC) #41
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 23:21:02 UTC) #43
Message was sent while issue was closed.
Committed patchset #6 (id:40002) as
https://pdfium.googlesource.com/pdfium/+/c0a47773d6dadeb8a39a6ced4ebbb1795e2e...

Powered by Google App Engine
This is Rietveld 408576698