Using POI-3.1-final I get the stack trace below: java.lang.OutOfMemoryError: Java heap space at org.apache.poi.hwpf.model.UnhandledDataStructure.<init>(UnhandledDataStructure.java:28) at org.apache.poi.hwpf.model.FIBFieldHandler.<init>(FIBFieldHandler.java:162) at org.apache.poi.hwpf.model.FileInformationBlock.fillVariableFields(FileInformationBlock.java:67) at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:177) at org.apache.poi.hwpf.extractor.WordExtractor.<init>(WordExtractor.java:56) at org.apache.poi.hwpf.extractor.WordExtractor.<init>(WordExtractor.java:48)
Created attachment 22284 [details] test data This attachment reproduced the bug.
Fix applied to svn trunk. It'll now throw an org.apache.poi.EncryptedDocumentException
Can you provide the patched class as an attachment?
Just grab it from svn / grab a nightly build http://poi.apache.org/subversion.html http://encore.torchbox.com/poi-svn-build/
Which class(es) did you modify?
See commits@poi.apache.org: http://mail-archives.apache.org/mod_mbox/poi-commits/200807.mbox/ajax/%3c20080721193548.75A3D2388989@eris.apache.org%3e