Merge pull request #16760 from Snuffleupagus/issue-16759
Avoid eagerly matching "trailer"-strings when searching for incomplete objects in `XRef.indexObjects` (issue 16759, PR 15854 follow-up, bug 1845762)
This commit is contained in:
commit
0ad5a5551a
@ -431,7 +431,7 @@ class XRef {
|
||||
}
|
||||
return skipped;
|
||||
}
|
||||
const gEndobjRegExp = /\b(endobj|\d+\s+\d+\s+obj|xref|trailer)\b/g;
|
||||
const gEndobjRegExp = /\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g;
|
||||
const gStartxrefRegExp = /\b(startxref|\d+\s+\d+\s+obj)\b/g;
|
||||
const objRegExp = /^(\d+)\s+(\d+)\s+obj\b/;
|
||||
|
||||
|
1
test/pdfs/issue16759.pdf.link
Normal file
1
test/pdfs/issue16759.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
https://github.com/mozilla/pdf.js/files/12185373/issue16759.pdf
|
@ -1844,6 +1844,14 @@
|
||||
"type": "eq",
|
||||
"annotations": true
|
||||
},
|
||||
{ "id": "issue16759",
|
||||
"file": "pdfs/issue16759.pdf",
|
||||
"md5": "07d97ae84f3d757e7ed20c628b94ecd5",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue9105_other",
|
||||
"file": "pdfs/issue9105_other.pdf",
|
||||
"md5": "4c8b9c2cceb9c5d621e1d50b3dc38efc",
|
||||
|
Loading…
Reference in New Issue
Block a user