You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
entry <entry> in Xref table invalid but object found
...
entry <entry> in Xref table invalid; object not found
Traceback (most recent call last):
File "/fuzz/./poc.py", line 18, in <module>
TestOneInput(sys.argv[1])
File "/fuzz/./poc.py", line 9, in TestOneInput
pdf_reader = pypdf.PdfReader(fname)
File "/usr/local/lib/python3.9/dist-packages/pypdf/_reader.py", line 132, in __init__
self._initialize_stream(stream)
File "/usr/local/lib/python3.9/dist-packages/pypdf/_reader.py", line 154, in _initialize_stream
self.read(stream)
File "/usr/local/lib/python3.9/dist-packages/pypdf/_reader.py", line 615, in read
self._read_xref_tables_and_trailers(stream, startxref, xref_issue_nr)
File "/usr/local/lib/python3.9/dist-packages/pypdf/_reader.py", line 871, in _read_xref_tables_and_trailers
startxref = self._read_xref(stream)
File "/usr/local/lib/python3.9/dist-packages/pypdf/_reader.py", line 910, in _read_xref
self._read_standard_xref_table(stream)
File "/usr/local/lib/python3.9/dist-packages/pypdf/_reader.py", line 781, in _read_standard_xref_table
while line[0] in b"\x0D\x0A":
IndexError: index out of range
The text was updated successfully, but these errors were encountered:
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 8e1799e
Code + PDF
This is a minimal, complete example that shows the issue:
PoC
crash-e8a85d82de01cab5eb44e7993304d8b9d1544970.pdf
Traceback
This is the complete stderr I see:
The text was updated successfully, but these errors were encountered: