[
https://issues.apache.org/jira/browse/PDFBOX-2811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558372#comment-14558372
]
ASF subversion and git services commented on PDFBOX-2811:
---------------------------------------------------------
Commit 1681606 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1681606 ]
PDFBOX-2811: fixed calculation of currentBufferPointer to avoid infinite loop
in a specific corner case, added junit test
> Infinite loop within RandomAccessBuffer
> ----------------------------------------
>
> Key: PDFBOX-2811
> URL: https://issues.apache.org/jira/browse/PDFBOX-2811
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.8.9, 2.0.0
> Reporter: Andreas Lehmkühler
> Assignee: Andreas Lehmkühler
> Fix For: 1.8.10, 2.0.0
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]