yob / pdf-reader

The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe.
MIT License
1.81k stars 271 forks source link

Check the type of an Object Stream before we start to process it #468

Closed yob closed 2 years ago

yob commented 2 years ago

It MUST be a PDF::Reader::Stream - anything else is invalid and we should fail early rather than try to parse it

Also fixed a typo in an error message