commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IMAGING-210) Imaging.getBufferedImage fails throwing NegativeArraySizeException for specific inputs -- evintila-april_dynamics
Date Sat, 17 Aug 2019 12:59:00 GMT

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

Bruno P. Kinoshita updated IMAGING-210:
---------------------------------------
    Fix Version/s: 1.0-alpha2

> Imaging.getBufferedImage fails throwing NegativeArraySizeException for specific inputs
-- evintila-april_dynamics
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: IMAGING-210
>                 URL: https://issues.apache.org/jira/browse/IMAGING-210
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: imaging.common.*
>    Affects Versions: 1.0-alpha1
>         Environment: Ubuntu 17.10
>            Reporter: Emanuel Vintila
>            Assignee: Bruno P. Kinoshita
>            Priority: Major
>              Labels: patch, security
>             Fix For: 1.0-alpha2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> For specific inputs, Imaging.getBufferedImage fails throwing java.lang.NegativeArraySizeException,
instead of ImageReadException or IOException. 
> Example code that can be used to reproduce the problem, with "testfile" found at this
link [https://drive.google.com/open?id=1GYB3ArNv8fk9NUes0wTQ2vioy4iMfmeR]:
> // evintila @ April Dynamics
> File file = new File("testfile");
> final Map<String, Object> params = new HashMap<>();
> params.put(ImagingConstants.BUFFERED_IMAGE_FACTORY,
>     new ManagedImageBufferedImageFactory());
>           
> try
> {
> // the problem is here:
> final BufferedImage image = Imaging.getBufferedImage(file, params);
> } catch (ImageReadException e)
> {
>      	  
> } catch (IOException e)
> {
>       	  
> }



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message