1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Ignore non-dictionary nodes when parsing StructTree data (issue 18503)

This commit is contained in:
Jonas Jenwald 2024-07-28 11:51:46 +02:00
parent d3384c0e3c
commit c4cd405a8f
4 changed files with 192 additions and 0 deletions

View file

@ -671,6 +671,9 @@ class StructTreePage {
warn("StructTree MAX_DEPTH reached.");
return null;
}
if (!(dict instanceof Dict)) {
return null;
}
if (map.has(dict)) {
return map.get(dict);