-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Will hang on invalid PDFs #77
Copy link
Copy link
Closed
Labels
is-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFneeds-pdfThe issue needs a PDF file to show the problemThe issue needs a PDF file to show the problem
Metadata
Metadata
Assignees
Labels
is-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFneeds-pdfThe issue needs a PDF file to show the problemThe issue needs a PDF file to show the problem
Doing some testing, I noticed that PyPDF2 will hang if it encounters an invalid PDF… for example, the
skipOverCommentfunction:Will hang indefinitely.
I would propose three courses of action:
Add a script for automating fuzz testing to the repo
Fix the bugs as the script from step (2) finds them
What do you think? Would you be open to patches for those?