Open Avgor46 opened 1 month ago
@stefan6419846 Maybe we can add one check after this line to see if line
is an empty list? https://github.com/py-pdf/pypdf/blob/98aa9742e757ec428e1953ba7f47c6d7c44b331a/pypdf/_reader.py#L779
Feel free to submit a corresponding PR. As long as all tests (including a new one) keep passing, I do not see an issue with merging it.
Hi!
I've found
IndexError
when pdf file is relatively large. Necessary information is provided below.Environment
Which environment were you using when you encountered the problem?
commit 8e1799e7836e77a637291dea9cb766b6a873f43b
Code + PDF
This is a minimal, complete example that shows the issue:
PoC
crash-e8a85d82de01cab5eb44e7993304d8b9d1544970.pdf
Traceback
This is the complete stderr I see: