poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48168] New: HSSFPicture.getImageDimension() does not close ImageInputStream
Date Tue, 10 Nov 2009 19:58:12 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48168

           Summary: HSSFPicture.getImageDimension() does not close
                    ImageInputStream
           Product: POI
           Version: 3.5-FINAL
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: gjones@arenapharm.com


In poi-3.5-FINAL

org/apache/poi/hssf/usermodel/HSSFPicture.getImageDimension()

opens an ImageInputStream and does not close it.  Repeated calls to
Picture.resize() result in an exception and hang due to too many open files. 
Fix by closing stream after image dimensions determined.

268d267
<             iis.close();

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message