An issue exists in Foxit Reader and PhantomPDF prior to 9.7.2. It has circular reference mishandling that causes a loop.
foxitsoftware phantompdf
foxitsoftware reader