Merge pull request #19513 from Snuffleupagus/issue-19510

Don't cache free/missing XRef entries (issue 19510)
This commit is contained in:
Jonas Jenwald 2025-02-18 21:23:01 +01:00 committed by GitHub
commit 63b397f49d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View File

@ -842,7 +842,6 @@ class XRef {
if (xrefEntry === null) {
// The referenced entry can be free.
this._cacheMap.set(num, xrefEntry);
return xrefEntry;
}
// Prevent circular references, in corrupt PDF documents, from hanging the

View File

@ -0,0 +1 @@
https://github.com/user-attachments/files/18841919/geht_nicht_02.pdf

View File

@ -5626,6 +5626,14 @@
"type": "eq",
"lastPage": 1
},
{
"id": "issue19510",
"file": "pdfs/issue19510.pdf",
"md5": "3ff133f633cea3e2f13f08f8c3414cc6",
"link": true,
"rounds": 1,
"type": "eq"
},
{
"id": "issue11768",
"file": "pdfs/issue11768_reduced.pdf",