[
https://issues.apache.org/jira/browse/PDFBOX-5177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17331494#comment-17331494
]
ASF subversion and git services commented on PDFBOX-5177:
---------------------------------------------------------
Commit 1889168 from [email protected] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1889168 ]
PDFBOX-5177: don't use number of objects to initialize list of objects, don't
read beyond the part of the stream reserved for object numbers
> Optimize memory footprint of PDFObjectStreamParser
> --------------------------------------------------
>
> Key: PDFBOX-5177
> URL: https://issues.apache.org/jira/browse/PDFBOX-5177
> Project: PDFBox
> Issue Type: Improvement
> Components: Parsing
> Affects Versions: 2.0.23, 3.0.0 PDFBox
> Reporter: Andreas Lehmkühler
> Assignee: Andreas Lehmkühler
> Priority: Major
> Fix For: 2.0.24, 3.0.0 PDFBox
>
>
> PDFObjectStreamParser uses the number of objects {{/N}} from the dictionary
> to initialize the map for object numbers/offsets (3.0.0) or list of objects
> (2.0-branch), but sometimes the value is too big or the stream can't be read,
> This may lead to a memory issue if resources are limited.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]