You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maison (Jira)" <ji...@apache.org> on 2021/11/08 08:05:00 UTC

[jira] [Created] (PDFBOX-5315) Stack overflow in PDColorSpace.create()

Maison created PDFBOX-5315:
------------------------------

             Summary: Stack overflow in PDColorSpace.create()
                 Key: PDFBOX-5315
                 URL: https://issues.apache.org/jira/browse/PDFBOX-5315
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
    Affects Versions: 2.0.24, 2.0.23, 2.0.22, 2.0.21, 2.0.20
            Reporter: Maison
         Attachments: bug_color_space.pdf

The fix of PDFBOX-4833 (handling of dictionary with /ColorSpace entry) introduces an infinite recursion bug in case the referenced dictionary is the color space itself.

Extract of a pdf that triggers the bug (see attachment):

*18 0 obj*
<</Type/XObject/Subtype/Image/Width 2794/Height 928/SMask 3 0 R/Length 13428/BitsPerComponent 8/Filter/FlateDecode/ColorSpace {*}18 0 R{*}>>

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org