From bf18cb6220aa19a64d2705640aad29d3f86ed04a Mon Sep 17 00:00:00 2001 From: Jun Fang Date: Wed, 28 Oct 2015 18:36:28 +0800 Subject: 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 Review URL: https://codereview.chromium.org/1423903002 . --- testing/resources/bug_216.in | 39 +++++++++++++++++++++++++++++++++++++++ testing/resources/bug_216.pdf | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 testing/resources/bug_216.in create mode 100644 testing/resources/bug_216.pdf (limited to 'testing') diff --git a/testing/resources/bug_216.in b/testing/resources/bug_216.in new file mode 100644 index 0000000000..1ecd862c17 --- /dev/null +++ b/testing/resources/bug_216.in @@ -0,0 +1,39 @@ +{{header}} +{{object 1 0}} << + /Type /Catalog + /Pages 2 0 R + /AcroForm 4 0 R +>> +endobj +{{object 2 0}} << + /Type /Pages + /Count 1 +>> +endobj +{{object 4 0}} << + /XFA [ + (xdp:xdp) 23 0 R + (form) 29 0 R + () 30 0 R] +>> +endobj +{{object 23 0}} << +>>stream + + +endstream +endobj +{{object 29 0}} << +>>stream +
+
+endstream +endobj +{{object 30 0}} << +>>stream +
+endstream +endobj +trailer +<> +%%EOF diff --git a/testing/resources/bug_216.pdf b/testing/resources/bug_216.pdf new file mode 100644 index 0000000000..2d5987277f --- /dev/null +++ b/testing/resources/bug_216.pdf @@ -0,0 +1,40 @@ +%PDF-1.7 +% ò¤ô +1 0 obj << + /Type /Catalog + /Pages 2 0 R + /AcroForm 4 0 R +>> +endobj +2 0 obj << + /Type /Pages + /Count 1 +>> +endobj +4 0 obj << + /XFA [ + (xdp:xdp) 23 0 R + (form) 29 0 R + () 30 0 R] +>> +endobj +23 0 obj << +>>stream + + +endstream +endobj +29 0 obj << +>>stream +
+
+endstream +endobj +30 0 obj << +>>stream +
+endstream +endobj +trailer +<> +%%EOF -- cgit v1.2.3