An issue exists in QPDF prior to 7.0.0. There is an infinite loop due to looping xref tables in QPDF.cc.
qpdf project qpdf