Tilman Hausherr created PDFBOX-6373:
---------------------------------------

             Summary: RandomAccessReadBuffer.read adds a -1 sentinel to its 
byte count
                 Key: PDFBOX-6373
                 URL: https://issues.apache.org/jira/browse/PDFBOX-6373
             Project: PDFBox
          Issue Type: Sub-task
          Components: IO
    Affects Versions: 3.0.8 PDFBox
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 3.0.9 PDFBox, 4.0.0


The error doesn't actually occur, but the code looks like it could.
The GO port fixed the bug although it admits that it doesn't occur.
The same code exists in 2.0 but there readRemainingBytes() never returns -1.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to