Commit ef9511219ac71b255e4b3eb106c0989816728fcc

Authored by m-holger
1 parent fd71c95e

Tighten named destination validation in `QPDFOutlineDocumentHelper::resolveNamed…

…Dest`: instead of accepting any Dictionary require a `/D` entry.
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();