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/named_dests.pdf | 46 +++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'testing/resources/named_dests.pdf') diff --git a/testing/resources/named_dests.pdf b/testing/resources/named_dests.pdf index e302c196d6..2e0e5ce71d 100644 --- a/testing/resources/named_dests.pdf +++ b/testing/resources/named_dests.pdf @@ -103,29 +103,29 @@ endstream endobj xref 0 23 -0000000000 65536 f -0000000015 00000 n -0000000119 00000 n -0000000217 00000 n -0000000378 00000 n -0000000000 65536 f -0000000000 65536 f -0000000000 65536 f -0000000000 65536 f -0000000000 65536 f -0000000548 00000 n -0000000638 00000 n -0000000766 00000 n -0000000000 65536 f -0000001060 00000 n -0000001188 00000 n -0000000000 65536 f -0000000000 65536 f -0000000000 65536 f -0000000000 65536 f -0000000000 65536 f -0000001283 00000 n -0000001393 00000 n +0000000000 65535 f +0000000015 00000 n +0000000119 00000 n +0000000217 00000 n +0000000378 00000 n +0000000000 65535 f +0000000000 65535 f +0000000000 65535 f +0000000000 65535 f +0000000000 65535 f +0000000548 00000 n +0000000638 00000 n +0000000766 00000 n +0000000000 65535 f +0000001060 00000 n +0000001188 00000 n +0000000000 65535 f +0000000000 65535 f +0000000000 65535 f +0000000000 65535 f +0000000000 65535 f +0000001283 00000 n +0000001393 00000 n trailer << /Size 6 /Root 1 0 R -- cgit v1.2.3