[ 
https://issues.apache.org/jira/browse/PDFBOX-2811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14561419#comment-14561419
 ] 

ASF subversion and git services commented on PDFBOX-2811:
---------------------------------------------------------

Commit 1682091 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1682091 ]

PDFBOX-2811: fixed another corner case concerning the currentBufferPointer, 
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]

Reply via email to