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
It's me again, I've been fuzzing PdfReader with a sydr-fuzz via langchain project and found few errors. The necessary information to reproduce one of them is provided below.
Environment
Which environment were you using when you encountered the problem?
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/pypdf/_page.py", line 1869, in process_operation
charMapTuple = cmaps[operands[0]]
KeyError: 10
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/fuzz/./poc.py", line 18, in <module>
TestOneInput(sys.argv[1])
File "/fuzz/./poc.py", line 11, in TestOneInput
page.extract_text()
File "/usr/local/lib/python3.9/dist-packages/pypdf/_page.py", line 2231, in extract_text
return self._extract_text(
File "/usr/local/lib/python3.9/dist-packages/pypdf/_page.py", line 2025, in _extract_text
process_operation(operator, operands)
File "/usr/local/lib/python3.9/dist-packages/pypdf/_page.py", line 1885, in process_operation
"???" + operands[0],
TypeError: can only concatenate str (not "NumberObject") to str
The text was updated successfully, but these errors were encountered:
Hi!
It's me again, I've been fuzzing PdfReader with a sydr-fuzz via langchain project and found few errors. The necessary information to reproduce one of them is provided below.
Environment
Which environment were you using when you encountered the problem?
upd. commit b7b3c8c
Code + PDF
This is a minimal, complete example that shows the issue:
PoC
crash-c1920c7a064649e1191d7879952ec252473fc7e6.pdf
Traceback
This is the complete traceback I see:
The text was updated successfully, but these errors were encountered: