From 219b3dab7e184bf8742f61527e37053b04903ff0 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 5 Feb 2015 10:41:08 -0800 Subject: Fix segv in CPDF_DataAvail::CheckRoot() when /Root object is a string. Handles the case of this malformed PDF without crashing. Note that to get a reproducible test case, a small fix is applied to our .py script which results in some whitespace/numbering difs across the resources (down the road, we ought to generate them on the fly in an intermediate directory). BUG=454695 R=jun_fang@foxitsoftware.com, thestig@chromium.org Review URL: https://codereview.chromium.org/895933003 --- testing/resources/bug_454695.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 testing/resources/bug_454695.in (limited to 'testing/resources/bug_454695.in') diff --git a/testing/resources/bug_454695.in b/testing/resources/bug_454695.in new file mode 100644 index 0000000000..36ae84cb0d --- /dev/null +++ b/testing/resources/bug_454695.in @@ -0,0 +1,12 @@ +{{header}} +% Hex string, not a dict as expected. +{{object 1 0}} + +endobj +{{xref}} +trailer << + /Size 2 + /Root 1 0 R +>> +{{startxref}} +%%EOF -- cgit v1.2.3