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
..
2020-04-14 12:28:14 +02:00
2017-01-29 23:24:44 +01:00
2020-04-17 12:24:46 +02:00
2020-07-30 11:10:37 +02:00
2018-11-23 13:49:58 +01:00
2013-03-15 11:24:08 -07:00
2020-04-14 12:28:14 +02:00
2020-10-03 23:06:31 +02:00
2020-04-14 12:28:14 +02:00