Bug 698409 - PDF xref loop causes denial of service
Summary: PDF xref loop causes denial of service
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: unspecified
Hardware: PC Linux
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-24 08:26 UTC by hanno
Modified: 2017-08-28 06:33 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
pdf with looping xrefs (1.65 KB, application/pdf)
2017-08-24 08:26 UTC, 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 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.