Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-alpha1
-
Ubuntu 17.10
-
Patch, Important
Description
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)
{
}
Attachments
Issue Links
- links to