[ https://issues.apache.org/jira/browse/PDFBOX-5981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17940968#comment-17940968 ]
ASF subversion and git services commented on PDFBOX-5981: --------------------------------------------------------- Commit 1924772 from Tilman Hausherr in branch 'pdfbox/trunk' [ https://svn.apache.org/r1924772 ] PDFBOX-5981: don't return -1 for length 0 > error "read() returns -1, assumed position: 8192, actual position: 8192" > ------------------------------------------------------------------------ > > Key: PDFBOX-5981 > URL: https://issues.apache.org/jira/browse/PDFBOX-5981 > Project: PDFBox > Issue Type: Bug > Components: IO > Affects Versions: 3.0.4 PDFBox > Reporter: Tilman Hausherr > Assignee: Tilman Hausherr > Priority: Major > Fix For: 3.0.5 PDFBox, 4.0.0 > > > I was analyzing page content streams as a whole with > {{page.getContents().readAllBytes()}} and got many log messages like this: > ERROR io.RandomAccessInputStream.read:101 - read() returns -1, assumed > position: 8192, actual position: 8192 > The cause is that an EOF is returned for 0 length. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org