Skip to content

Endless Loop When Processing Certain PDF file with PdfFileReader #361

@eghlima

Description

@eghlima

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:

MCVE: Code + PDF

Example PDF: file1.pdf

from PyPDF2 import PdfReader

p = PdfFileReader("file1.pdf") # in this line we will be wait a long

Metadata

Metadata

Assignees

No one assigned

    Labels

    Has MCVEA minimal, complete and verifiable example helps a lot to debug / understand feature requestsPdfReaderThe PdfReader component is affectedis-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions