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

Issue 1582193002: Loose checking for trailer's size field (Closed)

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

Description

Loose checking for trailer's size field Although trailer's size value is required by spec, other readers such as Acrobat or libpoppler can handle without it. Loose up the check to be more tolerant. BUG=pdfium:213 R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/34291b900ad0472eef582215cfce0d942a40fd16

Patch Set 1 : #

Total comments: 2

Patch Set 2 : address comments and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -5 lines) Patch
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 1 1 chunk +4 lines, -4 lines 0 comments Download
M fpdfsdk/src/fpdfview_embeddertest.cpp View 1 2 chunks +7 lines, -1 line 0 comments Download
A testing/resources/bug_213.pdf View 1 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Wei Li
PTAL, thanks
4 years, 11 months ago (2016-01-14 03:28:48 UTC) #3
Wei Li
Forgot to mention, the original file mentioned in the bug is large, and the page ...
4 years, 11 months ago (2016-01-14 03:31:24 UTC) #4
Lei Zhang
lgtm https://codereview.chromium.org/1582193002/diff/20001/fpdfsdk/src/fpdfview_embeddertest.cpp File fpdfsdk/src/fpdfview_embeddertest.cpp (right): https://codereview.chromium.org/1582193002/diff/20001/fpdfsdk/src/fpdfview_embeddertest.cpp#newcode232 fpdfsdk/src/fpdfview_embeddertest.cpp:232: // It tests that document can still be ...
4 years, 11 months ago (2016-01-14 19:26:15 UTC) #5
Wei Li
Thanks, fixed it. Will submit https://codereview.chromium.org/1582193002/diff/20001/fpdfsdk/src/fpdfview_embeddertest.cpp File fpdfsdk/src/fpdfview_embeddertest.cpp (right): https://codereview.chromium.org/1582193002/diff/20001/fpdfsdk/src/fpdfview_embeddertest.cpp#newcode232 fpdfsdk/src/fpdfview_embeddertest.cpp:232: // It tests that ...
4 years, 11 months ago (2016-01-14 22:36:56 UTC) #6
Wei Li
4 years, 11 months ago (2016-01-14 22:46:13 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:40001) manually as
34291b900ad0472eef582215cfce0d942a40fd16 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698