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
incorrect startxref pointer(2)
parsing for Object Streams
Traceback (most recent call last):
File "/fuzz/./poc.py", line 18, in <module>
TestOneInput(sys.argv[1])
File "/fuzz/./poc.py", line 10, in TestOneInput
for page_number, page in enumerate(pdf_reader.pages):
File "/usr/local/lib/python3.9/dist-packages/pypdf/_page.py", line 2468, in __iter__
for i in range(len(self)):
File "/usr/local/lib/python3.9/dist-packages/pypdf/_page.py", line 2393, in __len__
return self.length_function()
File "/usr/local/lib/python3.9/dist-packages/pypdf/_doc_common.py", line 353, in get_num_pages
self._flatten(self._readonly)
File "/usr/local/lib/python3.9/dist-packages/pypdf/_doc_common.py", line 1151, in _flatten
pages = catalog["/Pages"].get_object() # type: ignore
File "/usr/local/lib/python3.9/dist-packages/pypdf/generic/_data_structures.py", line 471, in __getitem__
return dict.__getitem__(self, key).get_object()
KeyError: '/Pages'
The text was updated successfully, but these errors were encountered:
Hi!
I've found
KeyError
inPdfReader
. Necessary information are provided below.Environment
Which environment were you using when you encountered the problem?
commit 762fc1f
Code + PDF
This is a minimal, complete example that shows the issue:
PoC
crash-6620e8b1abfe3da639b654595da859b87f985748.pdf
Traceback
This is the complete stderr I see:
The text was updated successfully, but these errors were encountered: