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