mfenniak / pyPdf

Pure-Python PDF Library; this repository is no longer maintained, please see https://github.com/knowah/PyPDF2/ insead.
https://github.com/knowah/PyPDF2/
Other
276 stars 85 forks source link

long loop in read an special pdf #48

Open eghlima opened 7 years ago

eghlima commented 7 years ago

I have attached an invalid pdf file. when I wanted to open that pdf file, I have faced with long time to read a pdf(more than 1 hour). seems a bug is in PdfFileReader. this is my test to reproduce the bug on pypdf2==1.26.0 and python 3.6:

from PyPDF2 import PdfFileReader f = open('file1.pdf', 'rb') p = PdfFileReader(f) # in this line we will be wait a long

file1.pdf