[ 
https://issues.apache.org/jira/browse/PDFBOX-2176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Hewson resolved PDFBOX-2176.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

Fixed in [r1607518|http://svn.apache.org/r1607518].

> Ignore IllegalArgumentException when reading an ICCProfile
> ----------------------------------------------------------
>
>                 Key: PDFBOX-2176
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2176
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel, Rendering
>    Affects Versions: 2.0.0
>            Reporter: Petr Slaby
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: 000049.pdf
>
>
> A "java.lang.IllegalArgumentException: Invalid ICC Profile Data" is thrown 
> from PDICCBase#loadICCProfile() when rendering the attached PDF. The code 
> already checks for and ignores ProfileDataException and CMMException at this 
> place. 
> IllegalArgumentException is thrown if the profile header data is completely 
> corrupt, either there is not even the 128 header bytes or the profile size 
> found in header does not match the size of data.
> The exception is ignored in 1.8, in 2.0 it is re-thrown. I think ignoring the 
> exception and using an alternate color space is better and consistent with 
> the handling of the other two expected exceptions.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to