Bug 698409 - PDF xref loop causes denial of service
PDF xref loop causes denial of service
Status: RESOLVED FIXED
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter
unspecified
PC Linux
: P4 normal
Assigned To: Ken Sharp
Bug traffic
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-24 08:26 PDT by hanno
Modified: 2017-08-28 06:33 PDT (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
pdf with looping xrefs (1.65 KB, application/pdf)
2017-08-24 08:26 PDT, hanno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hanno 2017-08-24 08:26:20 PDT
Created attachment 14125 [details]
pdf with looping xrefs

A file with looping xref's causes a hang of ghostscript. This was discovered for evince/poppler 6 years ago by Andreas Bogk, but the very same bug is present in many other PDF interpreters, including ghostscript.

The example file has been published here:
https://github.com/andreas23/pdfparser/blob/master/tests/loop_edited.pdf

I'll also attach it.
Comment 1 Ken Sharp 2017-08-28 06:33:19 PDT
(In reply to hanno from comment #0)
> Created attachment 14125 [details]
> pdf with looping xrefs

Fixed in commit f06cb1ba2d51c44cd27cbf12e2011d15e49cd3ad

 
> A file with looping xref's causes a hang of ghostscript. This was discovered
> for evince/poppler 6 years ago by Andreas Bogk, but the very same bug is
> present in many other PDF interpreters, including ghostscript.

I'm unsure what your point is here. If people don't report bugs then we don't know they exist and can't fix them.