diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-02-05 10:41:08 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-02-05 10:41:08 -0800 |
commit | 219b3dab7e184bf8742f61527e37053b04903ff0 (patch) | |
tree | 8ce24202dc2fd5a61774c947e5eecf007bea6bf9 /testing/resources/bug_451265.pdf | |
parent | dabc5d57bf473708295800a7991bc1fafdf76288 (diff) | |
download | pdfium-219b3dab7e184bf8742f61527e37053b04903ff0.tar.xz |
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
Diffstat (limited to 'testing/resources/bug_451265.pdf')
-rw-r--r-- | testing/resources/bug_451265.pdf | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/testing/resources/bug_451265.pdf b/testing/resources/bug_451265.pdf index 299363dac7..2a154771aa 100644 --- a/testing/resources/bug_451265.pdf +++ b/testing/resources/bug_451265.pdf @@ -74,21 +74,21 @@ endstream endobj xref 0 15 -0000000000 65536 f -0000000015 00000 n -0000000078 00000 n -0000000131 00000 n -0000000000 65536 f -0000000000 65536 f -0000000000 65536 f -0000000000 65536 f -0000000000 65536 f -0000000000 65536 f -0000000221 00000 n -0000000348 00000 n -0000000405 00000 n -0000000531 00000 n -0000000712 00000 n +0000000000 65535 f +0000000015 00000 n +0000000078 00000 n +0000000131 00000 n +0000000000 65535 f +0000000000 65535 f +0000000000 65535 f +0000000000 65535 f +0000000000 65535 f +0000000000 65535 f +0000000221 00000 n +0000000348 00000 n +0000000405 00000 n +0000000531 00000 n +0000000712 00000 n trailer << /Root 2 0 R /Size 110 |