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

Benedikt Ritter resolved IMAGING-169.
-------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: Review Patch)
                   1.0

{code}
$ svn ci -m "IMAGING-169: PnmImageParser throws NumberFormatException instead 
of ImageReadException when parsing invalid images. This also fixes #16 from 
github. Thanks to Nebu Pookins."
Sending        src/changes/changes.xml
Sending        
src/main/java/org/apache/commons/imaging/formats/pnm/PnmImageParser.java
Adding         src/test/java/org/apache/commons/imaging/formats/pnm
Adding         
src/test/java/org/apache/commons/imaging/formats/pnm/PnmImageParserTest.java
Transmitting file data ...
Committed revision 1676141.
{code}

> PnmImageParser throws NumberFormatException instead of ImageReadException 
> when parsing invalid images
> -----------------------------------------------------------------------------------------------------
>
>                 Key: IMAGING-169
>                 URL: https://issues.apache.org/jira/browse/IMAGING-169
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: PNM
>            Reporter: Nebu Pookins
>            Assignee: Benedikt Ritter
>             Fix For: 1.0
>
>
> The general contract for the image parsers is to throw ImageReadException if 
> they are passed an invalid image. PnmImageParser would throw 
> NumberFormatException if the width or header could not be parsed.



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

Reply via email to