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

Issue 1423903002: A crasher due to lacking 'template' node in XFA file (Closed)

Created:
5 years, 1 month ago by jun_fang
Modified:
5 years, 1 month ago
Reviewers:
Tom Sepez, Lei Zhang
CC:
pdfium-reviews_googlegroups.com, kai_jing, bin_wang
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Target Ref:
refs/heads/xfa
Visibility:
Public.

Description

A crasher due to lacking 'template' node in XFA file A template node is mandatory in XFA file. Pdfium should ignore processing it when no template node is found in XFA file. BUG=pdfium:216 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/bf18cb6220aa19a64d2705640aad29d3f86ed04a

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : Rebase for landing #

Patch Set 7 : Upload the test file to replace a NULL file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -12 lines) Patch
M BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M pdfium.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A testing/resources/bug_216.in View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A testing/resources/bug_216.pdf View 1 2 6 0 chunks +-1 lines, --1 lines 0 comments Download
M xfa/src/fxfa/src/parser/xfa_parser_imp.cpp View 1 2 3 4 6 chunks +26 lines, -13 lines 0 comments Download
A xfa/src/fxfa/src/parser/xfa_parser_imp_embeddertest.cpp View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
jun_fang
Hi Tom and Lei, Please help to review this CL. Thanks!
5 years, 1 month ago (2015-10-26 13:34:34 UTC) #3
Tom Sepez
lgtm https://codereview.chromium.org/1423903002/diff/60001/xfa/src/fxfa/src/parser/xfa_parser_imp.cpp File xfa/src/fxfa/src/parser/xfa_parser_imp.cpp (right): https://codereview.chromium.org/1423903002/diff/60001/xfa/src/fxfa/src/parser/xfa_parser_imp.cpp#newcode436 xfa/src/fxfa/src/parser/xfa_parser_imp.cpp:436: IFDE_XMLNode* pXMLTemplateDOMRoot = NULL; nit: nullptr for new ...
5 years, 1 month ago (2015-10-26 16:04:32 UTC) #4
Lei Zhang
I made some minor edits to the CL description.
5 years, 1 month ago (2015-10-26 17:50:53 UTC) #6
jun_fang
https://codereview.chromium.org/1423903002/diff/60001/xfa/src/fxfa/src/parser/xfa_parser_imp.cpp File xfa/src/fxfa/src/parser/xfa_parser_imp.cpp (right): https://codereview.chromium.org/1423903002/diff/60001/xfa/src/fxfa/src/parser/xfa_parser_imp.cpp#newcode436 xfa/src/fxfa/src/parser/xfa_parser_imp.cpp:436: IFDE_XMLNode* pXMLTemplateDOMRoot = NULL; On 2015/10/26 16:04:32, Tom Sepez ...
5 years, 1 month ago (2015-10-27 04:01:40 UTC) #7
jun_fang
+Bin
5 years, 1 month ago (2015-10-27 04:24:37 UTC) #8
jun_fang
5 years, 1 month ago (2015-10-28 10:36:58 UTC) #9
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
bf18cb6220aa19a64d2705640aad29d3f86ed04a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698