Bug 698409

Summary: PDF xref loop causes denial of service
Product: Ghostscript Reporter: hanno
Component: PDF InterpreterAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED FIXED QA Contact: Bug traffic <tech>
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: pdf with looping xrefs

Description hanno 2017-08-24 08:26:20 UTC
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 UTC
(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.