XpdfReader

Xpdf Security Bug: object loops

PDF files can contain 'object loops', where one PDF object points back to itself, or a sequence of PDF objects point to each other in a longer loop.

Xpdf catches many of those loops, but currently doesn't catch all of them. The result is an infinite loop in Xpdf, ending with a stack overflow.

We're planning a more robust loop detector for Xpdf 5.

Known loops, with references to the Xpdf functions that end up in infinite loops: