[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Updated] (SANSELAN-53) Bug in Sanselan.getImageInfo(File)
From:       "Dominic Early (JIRA)" <jira () apache ! org>
Date:       2011-06-30 8:14:28
Message-ID: 114359016.4770.1309421668600.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]


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

Dominic Early updated SANSELAN-53:
----------------------------------

    Attachment: SanselanTest.java

Test driver demonstrates how the two sample files are parsed by javax.imageio without \
issue, but cause NegativeArraySizeException or OutOfMemoryError when parsed by Apache \
Sanselan 

(minor update)

> Bug in Sanselan.getImageInfo(File) with certain JPEGs causing \
>                 java.lang.OutOfMemoryError or java.lang.NegativeArraySizeException
> --------------------------------------------------------------------------------------------------------------------------------
>  
> Key: SANSELAN-53
> URL: https://issues.apache.org/jira/browse/SANSELAN-53
> Project: Commons Sanselan
> Issue Type: Bug
> Affects Versions: 0.94-incubator
> Environment: Windows, Unix
> Sun Java JVM (multiple versions)
> Reporter: Dominic Early
> Attachments: NegativeArraySizeException.jpg, OutOfMemoryError.jpg, \
> SanselanTest.java, SanselanTest.java 
> 
> In order to extract JPEG image dimensions, Apache Commons Sanselan (0.97) was used \
> as follows: File imgfile = new File("./test.jpg");
> org.apache.sanselan.Sanselan.getImageInfo(imgfile);
> For most JPEG images, this code works as expected.  However with specific JPEG \
> files, the call to getImageInfo() causes a repeatable java.lang.OutOfMemoryError or \
> java.lang.NegativeArraySizeException - depending upon the input JPEG file.  The \
> same files can be processed with javax.imageio.ImageReader without such issues. The \
> OutOfMemoryError is especially serious as it may cause JVM to fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic