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

Infinite loop within RandomAccessBuffer

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.9, 2.0.0
    • 1.8.10, 2.0.0
    • PDModel
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment