You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2026/04/12 09:42:00 UTC
[jira] [Updated] (PDFBOX-6166) Improve some implementation flaws in NonSeekableRandomAccessReadInputStream
[ https://issues.apache.org/jira/browse/PDFBOX-6166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler updated PDFBOX-6166:
---------------------------------------
Description:
[~tilman] found some flaws in the implementation of NonSeekableRandomAccessReadInputStream based on a posting from Daniel Gredler on the users mailinglist
As NonSeekableRandomAccessReadInputStream is backed by an InputStream we have to think about the implementation of some methods as the length of the given inputStream isn't available at the beginning
* length: the current implementation relies on the internal member "size"
* available: the current default implementation relies on length()
* readFully: the current default implementation relies on length()
was:
[~tilman] found some flaws in the implementation of NonSeekableRandomAccessReadInputStream based on a posting from Daniel Gredler on the users mailinglist
As NonSeekableRandomAccessReadInputStream is backed by in InputStream we have to think about the implementation of some methods as the length of the given inputStream is available at the beginning
* length: the current implementation relies on the internal member "size"
* available: the current default implementation relies on length()
* readFully: the current default implementation relies on length()
> Improve some implementation flaws in NonSeekableRandomAccessReadInputStream
> ---------------------------------------------------------------------------
>
> Key: PDFBOX-6166
> URL: https://issues.apache.org/jira/browse/PDFBOX-6166
> Project: PDFBox
> Issue Type: Improvement
> Components: IO, Parsing
> Affects Versions: 3.0.6 PDFBox, 4.0.0
> Reporter: Andreas Lehmkühler
> Assignee: Andreas Lehmkühler
> Priority: Major
>
> [~tilman] found some flaws in the implementation of NonSeekableRandomAccessReadInputStream based on a posting from Daniel Gredler on the users mailinglist
> As NonSeekableRandomAccessReadInputStream is backed by an InputStream we have to think about the implementation of some methods as the length of the given inputStream isn't available at the beginning
> * length: the current implementation relies on the internal member "size"
> * available: the current default implementation relies on length()
> * readFully: the current default implementation relies on length()
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org