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

ScratchFileBuffer seek beyond the last page

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.18
    • Fix Version/s: 2.0.19, 3.0.0 PDFBox
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: