summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-repair.c
diff options
context:
space:
mode:
authorSimon Bünzli <zeniko@gmail.com>2014-10-28 15:04:01 +0100
committerSimon Bünzli <zeniko@gmail.com>2014-10-28 15:46:31 +0100
commit37779f92eda4a7adf4b0f0212f89680beca77c5c (patch)
treeeb84c516f63aab14115a8d07e62f78f6d3f501df /source/pdf/pdf-repair.c
parentb1542d7c2f33a4412606c013a5ba6ce0ad31c034 (diff)
downloadmupdf-37779f92eda4a7adf4b0f0212f89680beca77c5c.tar.xz
more liberally accept page trees with unexpected content
pdf_lookup_page_loc_imp currently throws if any object in the page tree is neither a /Pages node nor a /Page leaf. This unnecessarily rejects slightly broken documents such as the ones from https://code.google.com/p/sumatrapdf/issues/detail?id=2582 and https://code.google.com/p/sumatrapdf/issues/detail?id=2608 . pdf_count_pages_before_kid currently wrongly throws if a /Pages node doesn't contain any kids and correctly states so (which even seems to be permitted by the PDF specification).
Diffstat (limited to 'source/pdf/pdf-repair.c')
0 files changed, 0 insertions, 0 deletions