The file http://projects.info-pull.com/moab/bug-files/MOAB-06-01-2007.pdf makes ghoscript 8.62 and current svn spit out a warning about a broken XREF table, and then continues to eat up all CPU resources. A detailed description of the design flaw illustrated by this pdf is available at http://projects.info-pull.com/moab/MOAB-06-01-2007.html, also mentioning potential more severe implications, which may or may not apply to ghostscript. Other vendors have patched their clients in the meantime (Apple, Adobe, Poppler). I.e. Poppler limited the max depth of recursive calls for reading the PageTree. Maybe ghostscript could impose a sensible limit on these as well? regards, bkw
Verified with 8.62 and head (r8825).
Created attachment 4247 [details] patch Check for loops in the 'page tree' but accept an acyclic graph. Report /syntaxerror and terminate the job when the loop is detected. Regression testing shows no differences. We don't have other files so badly broken.
The patch is committed as a rev. 8933.