commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SANSELAN-53) Bug in Sanselan.getImageInfo(File) with certain JPEGs causing java.lang.OutOfMemoryError or java.lang.NegativeArraySizeException
Date Tue, 20 Dec 2011 10:49:31 GMT

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

Emmanuel Bourg updated SANSELAN-53:
-----------------------------------

    Affects Version/s:     (was: 0.94-incubator)
                       0.97
        Fix Version/s: 1.0
    
> 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.97
>         Environment: Windows, Unix
> Sun Java JVM (multiple versions)
>            Reporter: Dominic Early
>             Fix For: 1.0
>
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message