Hello, I use poppler-0.12.0. Recently, I've got the files without 'Length' attribute at stream dictionary. This caused poppler to fail in stream processing. File poppler/Parser.cc Line 182. Acrobat Reader process the file successfully. On the other hand, poppler already have a code for processing such cases (a few lines bellow). I attached a patch that causes the code to continue processing, instead of failure. Regards, Ilya
Created attachment 32242 [details] [review] Patch
Created attachment 32243 [details] test file
That's a bit invasive, i'll have to run my test regression suite to see if it regresses somewhere, but that'll have to wait a few days.
On a second look this seems quite dangerous as there is no guarantee length will ever be assigned later on, maybe adding a length = 0; in place of the return NULL;?
You are definitely correct, I will update the patch.
Created attachment 32312 [details] [review] Updated patch The 'length' was initialized to 0.
I've commited the patch to git master branch
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.