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 119 dests,
120 120 qpdf,
121 121 [](QPDFObjectHandle const& o) -> bool {
122   - return o.isArray() || o.isDictionary();
  122 + return o.isArray() || o.contains("/D");
123 123 },
124 124 true);
125 125 m->names_dest->validate();
... ...