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 41357] New: - OutOfMemoryException and Infinite Loop in HSLFSlideShow
Date Fri, 12 Jan 2007 13:02:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41357>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41357

           Summary: OutOfMemoryException and Infinite Loop in HSLFSlideShow
           Product: POI
           Version: 3.0-dev
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSLF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: asf@raikoeckstein.de


The HLSFSlideShow.readPictures() method can result in an infinite loop. 

When trying to instantiate an PowerPointExtractor with
poi-scratchpad-3.0-alpha3-20061212.jar the following exception was raised.

Problem reading picture: java.lang.IllegalArgumentException: Unsupported picture
type: -61464
You document will probably become corrupted if you save it!

While debugging i noticed that POI was trying to read pictures out of a PPT
presentation, unfortunately at least one picture was of size 0 (don't know why).
   That made the method HSLFSlideShow.readPictures() ran into an infinite loop
at line 283 at
            pos += imgsize;
because imgsize was zero.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message