Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check the top-level /Pages dictionary when finding the trailer in `XR…
…ef.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.
- Loading branch information