poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60670] Fails to create document nodes in MSI files larger than 2 GB
Date Wed, 01 Mar 2017 09:29:47 GMT

--- Comment #8 from Marcus Lundblad <marcus.lundblad@primekey.se> ---
(In reply to Nick Burch from comment #7)
> I've just tried with your program and your 3gb msi file, but I think the
> file might be corrupt? When I run the program, it fails with:
> Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 8,
> Size: 8
> 	at java.util.ArrayList.rangeCheck(ArrayList.java:635)
> 	at java.util.ArrayList.get(ArrayList.java:411)
> 	at
> org.apache.poi.poifs.property.PropertyTableBase.
> populatePropertyTree(PropertyTableBase.java:128)
> 	at
> org.apache.poi.poifs.property.PropertyTableBase.<init>(PropertyTableBase.
> java:63)
> 	at
> org.apache.poi.poifs.property.NPropertyTable.<init>(NPropertyTable.java:66)
> 	at
> org.apache.poi.poifs.filesystem.NPOIFSFileSystem.
> readCoreContents(NPOIFSFileSystem.java:440)
> 	at
> org.apache.poi.poifs.filesystem.NPOIFSFileSystem.<init>(NPOIFSFileSystem.
> java:235)
> 	at
> org.apache.poi.poifs.filesystem.NPOIFSFileSystem.<init>(NPOIFSFileSystem.
> java:168)
> 	at Main.main(Main.java:18)
> I've done a fix for PropertyTableBase to skip broken entries. That then lets
> me run your program without error

I can still reproduce the "Negative position" exception problem with a file
generated by the WiX toolset.
I only managed to generate a very large file with random data (so it won't
compress, will see if I can still provide a link to download it).
Also, it did actually work with my sample test program, but when I increased
the size of the byte array to add as an extra document to 10000 bytes I got the
same error again, so I guess it might be due to padding (when a new block needs
to be created).

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

View raw message