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 49139] New: POIFSystem() fails to handle 4K blocks OLE documents.
Date Fri, 16 Apr 2010 21:47:20 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49139

           Summary: POIFSystem() fails to handle 4K blocks OLE documents.
           Product: POI
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POIFS
        AssignedTo: dev@poi.apache.org
        ReportedBy: michel.boudinot@inaf.cnrs-gif.fr


When used with 4K blocks OLE documents POIFSFileSystem() invocation gives
OutOfBoundsException.

.... part of my code 
        stream = new FileInputStream(fileName);
        POIFSFileSystem fs = null;
                fs = new POIFSFileSystem(stream);         <======( line 101 )
        DirectoryEntry dir = fs.getRoot();
        // dir is an instance of DirectoryEntry ...

        directoryParse(0, dir);
......

java.lang.IndexOutOfBoundsException
    at org.apache.poi.util.IntList.get(IntList.java:351)
    at
org.apache.poi.poifs.storage.BlockAllocationTableReader.fetchBlocks(BlockAllocationTableReader.java:191)
    at
org.apache.poi.poifs.storage.BlockListImpl.fetchBlocks(BlockListImpl.java:130)
    at
org.apache.poi.poifs.storage.SmallBlockTableReader.getSmallDocumentBlocks(SmallBlockTableReader.java:57)
    at
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:176)
    at POIFSDmp.zviDocumentParse(POIFSDmp.java:101)

Same code is ok with 512 byte block documents.

The document attached (IP-ConvertImage-01.zvi, 22Mb) is a 4K block Zeiss ZVI
OLE document to reproduce the observed bug.
Thanks,
Michel.

-- 
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