ImageUtilities.getImageInputStreamSPI don't close streams
---------------------------------------------------------
Key: GEOT-3280
URL: http://jira.codehaus.org/browse/GEOT-3280
Project: GeoTools
Issue Type: Bug
Components: core coverage
Affects Versions: 2.7-M3
Reporter: Daniele Romagnoli
Assignee: Daniele Romagnoli
The ImageUtilities.getImageInputStreamSPI(final Object input) method internally
calls:
spi.createInputStreamInstance(input, usecache, ImageIO.getCacheDirectory());
However, the created inputStream instance is never closed before the method
return.
The method is asked for returning an ImageInputStreamSpi object.
For security checks, it internally uses the retrieved SPI to try creating also
an ImageInputStream, which is never closed.
We should add a finally section which closes that stream.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel