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

Issue 1910063004: Add a simple check for V4 cross reference table (Closed)

Created:
4 years, 8 months ago by Wei Li
Modified:
4 years, 8 months ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Add a simple check for V4 cross reference table Some unknown software generates cross reference table with the claimed object numbers are all off by one. Add a simple verification function to detect this scenario, thus have a chance to rebuild the correct cross reference table. To avoid unnecessary checks and potiential performance hit, we only check for the very first non free entry. BUG=602650 Committed: https://pdfium.googlesource.com/pdfium/+/90c964fb069bfa9934493481f8ccfefef9c3b3fe

Patch Set 1 : #

Total comments: 9

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -0 lines) Patch
M DEPS View 1 chunk +7 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_parser.cpp View 1 2 chunks +28 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp View 2 chunks +16 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_parser.h View 1 chunk +3 lines, -0 lines 0 comments Download
A testing/resources/bug_602650.pdf View 1 1 chunk +105 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Wei Li
PTAL, thanks
4 years, 8 months ago (2016-04-21 19:40:31 UTC) #3
dsinclair
https://codereview.chromium.org/1910063004/diff/2/core/fpdfapi/fpdf_parser/cpdf_parser.cpp File core/fpdfapi/fpdf_parser/cpdf_parser.cpp (right): https://codereview.chromium.org/1910063004/diff/2/core/fpdfapi/fpdf_parser/cpdf_parser.cpp#newcode324 core/fpdfapi/fpdf_parser/cpdf_parser.cpp:324: for (const auto& it : m_ObjectInfo) { Is this ...
4 years, 8 months ago (2016-04-21 19:47:09 UTC) #5
Wei Li
https://codereview.chromium.org/1910063004/diff/2/core/fpdfapi/fpdf_parser/cpdf_parser.cpp File core/fpdfapi/fpdf_parser/cpdf_parser.cpp (right): https://codereview.chromium.org/1910063004/diff/2/core/fpdfapi/fpdf_parser/cpdf_parser.cpp#newcode324 core/fpdfapi/fpdf_parser/cpdf_parser.cpp:324: for (const auto& it : m_ObjectInfo) { On 2016/04/21 ...
4 years, 8 months ago (2016-04-21 20:56:45 UTC) #6
dsinclair
https://codereview.chromium.org/1910063004/diff/2/core/fpdfapi/fpdf_parser/cpdf_parser.cpp File core/fpdfapi/fpdf_parser/cpdf_parser.cpp (right): https://codereview.chromium.org/1910063004/diff/2/core/fpdfapi/fpdf_parser/cpdf_parser.cpp#newcode393 core/fpdfapi/fpdf_parser/cpdf_parser.cpp:393: if (i == 0 && !VerifyCrossRefV4()) On 2016/04/21 20:56:44, ...
4 years, 8 months ago (2016-04-21 21:02:54 UTC) #8
Wei Li
On 2016/04/21 21:02:54, dsinclair wrote: > https://codereview.chromium.org/1910063004/diff/2/core/fpdfapi/fpdf_parser/cpdf_parser.cpp > File core/fpdfapi/fpdf_parser/cpdf_parser.cpp (right): > > https://codereview.chromium.org/1910063004/diff/2/core/fpdfapi/fpdf_parser/cpdf_parser.cpp#newcode393 > ...
4 years, 8 months ago (2016-04-21 21:10:35 UTC) #10
dsinclair
On 2016/04/21 21:10:35, Wei Li wrote: > On 2016/04/21 21:02:54, dsinclair wrote: > > > ...
4 years, 8 months ago (2016-04-21 23:50:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910063004/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910063004/50001
4 years, 8 months ago (2016-04-22 22:10:18 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 22:25:19 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:50001) as
https://pdfium.googlesource.com/pdfium/+/90c964fb069bfa9934493481f8ccfefef9c3...

Powered by Google App Engine
This is Rietveld 408576698