Commit e812eafaccd19ef934c20d7c3ee58592d155a13b
Committed by
GitHub
Merge pull request #1638 from m-holger/fuzz
Tighten named destination validation in `QPDFOutlineDocumentHelper::r…
Showing
1 changed file
with
1 additions
and
1 deletions
libqpdf/QPDFOutlineDocumentHelper.cc
| @@ -119,7 +119,7 @@ QPDFOutlineDocumentHelper::resolveNamedDest(QPDFObjectHandle name) | @@ -119,7 +119,7 @@ QPDFOutlineDocumentHelper::resolveNamedDest(QPDFObjectHandle name) | ||
| 119 | dests, | 119 | dests, |
| 120 | qpdf, | 120 | qpdf, |
| 121 | [](QPDFObjectHandle const& o) -> bool { | 121 | [](QPDFObjectHandle const& o) -> bool { |
| 122 | - return o.isArray() || o.isDictionary(); | 122 | + return o.isArray() || o.contains("/D"); |
| 123 | }, | 123 | }, |
| 124 | true); | 124 | true); |
| 125 | m->names_dest->validate(); | 125 | m->names_dest->validate(); |