mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-07-31 04:29:37 +08:00
In ObjectTreeTraverser::GetReferenceEntries(), only check a referenced object's object number when there is a valid referenced object. This avoids a CHECK() failure when a malformed PDF references object 0, which is always a free object. Bug: chromium:1443734 Change-Id: I580493aae13c454fcce353673d0c5854bb33fcf7 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/107330 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
46 lines
588 B
Plaintext
46 lines
588 B
Plaintext
{{header}}
|
|
{{object 1 0}} <<
|
|
/Type /Catalog
|
|
/Pages 2 0 R
|
|
>>
|
|
endobj
|
|
{{object 2 0}} <<
|
|
/Type /Pages
|
|
/MediaBox [0 0 200 300]
|
|
/Count 1
|
|
/Kids [3 0 R]
|
|
>>
|
|
endobj
|
|
{{object 3 0}} <<
|
|
/Type /Page
|
|
/Parent 2 0 R
|
|
/Contents 4 0 R
|
|
% Deliberately references object 0.
|
|
/CropBox 0 0 R
|
|
>>
|
|
endobj
|
|
{{object 4 0}} <<
|
|
{{streamlen}}
|
|
>>
|
|
stream
|
|
q
|
|
0 0 0 rg
|
|
0 290 10 10 re B*
|
|
10 150 50 30 re B*
|
|
0 0 1 rg
|
|
190 290 10 10 re B*
|
|
70 232 50 30 re B*
|
|
0 1 0 rg
|
|
190 0 10 10 re B*
|
|
130 150 50 30 re B*
|
|
1 0 0 rg
|
|
0 0 10 10 re B*
|
|
70 67 50 30 re B*
|
|
Q
|
|
endstream
|
|
endobj
|
|
{{xref}}
|
|
{{trailer}}
|
|
{{startxref}}
|
|
%%EOF
|