[ 
https://issues.apache.org/jira/browse/PDFBOX-3070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14981194#comment-14981194
 ] 

ASF subversion and git services commented on PDFBOX-3070:
---------------------------------------------------------

Commit 1711357 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1711357 ]

PDFBOX-3070: avoid endless recursion for DefaultRGB color space, as suggested 
by Evgeniy Muravitskiy

> Incorrect DefaultRGB color space obtain
> ---------------------------------------
>
>                 Key: PDFBOX-3070
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3070
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Evgeniy Muravitskiy
>             Fix For: 2.1.0
>
>         Attachments: Fix_cycled_default_color_space.patch, 
> gs-bugzilla693548-STACKOVERFLOW.pdf
>
>
> I got StackOverflowException for following code:
> {code}
> COSDictionary resourcesDict = new COSDictionary();
> COSDictionary colorSpacesDict = new COSDictionary();
> colorSpacesDict.setItem(COSName.DEFAULT_CMYK, COSName.DEVICECMYK);
> resourcesDict.setItem(COSName.COLORSPACE, colorSpacesDict);
> PDResources resources = new PDResources(resourcesDict);
> resources.getColorSpace(COSName.DEFAULT_CMYK);
> {code}
> {{PDColorSpace.create(COSBase, PDResources)}} ignore possible cycle Default 
> -> Device -> Default - > Device -> ......



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to