Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4756

ScratchFileBuffer seek beyond the last page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.18
    • 2.0.19, 3.0.0 PDFBox
    • None
    • None

    Description

      When rendering a confidential PDF, we get a java.io.EOFException in ScratchFileBuffer.seek(). The problem is demonstrated in the attached test and fixed by the attached patch.

      Attachments

        1. ScratchFileBuffer.java.patch
          0.8 kB
          Petr Slaby
        2. ScratchFileBufferRegressionTest.java
          2 kB
          Petr Slaby

        Activity

          People

            tilman Tilman Hausherr
            pslabycz Petr Slaby
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: