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

Stream parsing of BaseParser should fall back to scanning if length value is wrong

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.7.1
    • Parsing
    • None

    Description

      In 1.7.0 stream parsing in BaseParser was optimized to use length value if available. The advantage is faster parsing and independence of 'endstream' bytes sequences in stream. However the disadvantage is that streams with wrong length values cannot be parsed anymore (see PDFBOX-1331).
      To solve this we should check if 'endstream' is really reached when using length value and if not, fall back to 'old' behavior of reading stream until 'endstream' is found.

      Attachments

        Issue Links

          Activity

            People

              tboehme Timo Boehme
              tboehme Timo Boehme
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: