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

Infinite loop within RandomAccessBuffer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.9, 2.0.0
    • Fix Version/s: 1.8.10, 2.0.0
    • Component/s: PDModel
    • Labels:
      None

      Description

      I've found an issue with RandomAccessBuffer which is triggered in a very specific corner case only:

      • the buffer has more than 1 chunk
      • read(byte[] b, int offset, int length) is used to read the data
      • the data is read in portions
      • one of the portions to be read is identical with the last remaining bytes of the current chunk
        The current implementation won't advance to the next buffer, but reads the last bytes again and again.

        Attachments

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              lehmi Andreas Lehmkühler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: