pdfminer / pdfminer.six

Community maintained fork of pdfminer - we fathom PDF
https://pdfminersix.readthedocs.io
MIT License
5.84k stars 925 forks source link

OSS-Fuzz issue 70164 #999

Closed pietermarsman closed 2 months ago

pietermarsman commented 2 months ago

OSS-Fuzz has found a bug in this project. Please see https://oss-fuzz.com/testcase?key=5456301560233984 for details and reproducers.

This issue is mirrored from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70164 and will auto-close if the status changes there.

If you have trouble accessing this report, please file an issue at https://github.com/google/oss-fuzz/issues/new.

The testcase raises the error:

    TypeError: unsupported operand type(s) for *: 'PSLiteral' and 'int'
    Traceback (most recent call last):
      File "fuzzing/extract_text_fuzzer.py", line 26, in fuzz_one_input
      File "pdfminer/high_level.py", line 176, in extract_text
      File "pdfminer/pdfinterp.py", line 921, in process_page
      File "pdfminer/pdfinterp.py", line 939, in render_contents
      File "pdfminer/pdfinterp.py", line 964, in execute
      File "pdfminer/pdfinterp.py", line 789, in do_Td
    TypeError: unsupported operand type(s) for *: 'PSLiteral' and 'int'