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
Attachments
Issue Links
- is related to
-
PDFBOX-2016 Stream parsing still incorrect if length value is wrong
- Closed