pdf.js/test/pdfs/issue12402.pdf.link
Jonas Jenwald 8a132f584d Check the top-level /Pages dictionary when finding the trailer in XRef.indexObjects (issue 12402)
In addition to the existing /Root and /Pages validation, also check that the /Pages-entry actually is a dictionary and that it has a valid /Count-entry.
This way we can avoid picking a trailer candidate which e.g. the `Catalog.numPages` getter will just end up rejecting, thus breaking PDF document loading completely.
2020-11-25 15:14:53 +01:00

2 lines
63 B
SYSTEMD

https://github.com/mozilla/pdf.js/files/5597129/issue12402.pdf