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: [email protected]
        ReportedBy: [email protected]


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to