mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Protection from empty/invalid root or kid in NameTree
This commit is contained in:
parent
9ec9754eba
commit
6809f254eb
1 changed files with 3 additions and 0 deletions
|
@ -797,6 +797,9 @@ var NameTree = (function NameTreeClosure() {
|
|||
while (queue.length > 0) {
|
||||
var i, n;
|
||||
var obj = xref.fetchIfRef(queue.shift());
|
||||
if (!isDict(obj)) {
|
||||
continue;
|
||||
}
|
||||
if (obj.has('Kids')) {
|
||||
var kids = obj.get('Kids');
|
||||
for (i = 0, n = kids.length; i < n; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue