https://bz.apache.org/bugzilla/show_bug.cgi?id=58656
Bug ID: 58656
Summary: ArrayIndexOutOfBounds when parsing ms word document
Product: POI
Version: 3.13-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: POIFS
Assignee: [email protected]
Reporter: [email protected]
Created attachment 33300
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33300&action=edit
MS word file that raises an AIOOBE (poi v3.13-FINAL)
Hi,
We are trying to parse a number of MS Word documents using Tika v1.11 (POI
v.3.13-FINAL), however an AIOOBE is raised when trying to parse the document
attached. Even if the file is corrupted, shouldn't we get a different exception
other than an "Unexpected RuntimeException"
Could you please have a look at this?
Thanks,
Panagiotis
Stacktrace:
Cause: Unexpected RuntimeException from
org.apache.tika.parser.microsoft.OfficeParser@6ebda34c
Cause: 128
Caused by: java.lang.ArrayIndexOutOfBoundsException: 128
at org.apache.poi.util.LittleEndian.getShort(LittleEndian.java:224)
at org.apache.poi.util.ShortField.readFromBytes(ShortField.java:166)
at org.apache.poi.util.ShortField.<init>(ShortField.java:91)
at org.apache.poi.poifs.property.Property.<init>(Property.java:165)
at
org.apache.poi.poifs.property.DirectoryProperty.<init>(DirectoryProperty.java:69)
at
org.apache.poi.poifs.property.PropertyFactory.convertToProperties(PropertyFactory.java:79)
at
org.apache.poi.poifs.property.NPropertyTable.buildProperties(NPropertyTable.java:110)
at
org.apache.poi.poifs.property.NPropertyTable.<init>(NPropertyTable.java:66)
at
org.apache.poi.poifs.filesystem.NPOIFSFileSystem.readCoreContents(NPOIFSFileSystem.java:416)
at
org.apache.poi.poifs.filesystem.NPOIFSFileSystem.<init>(NPOIFSFileSystem.java:228)
at
org.apache.poi.poifs.filesystem.NPOIFSFileSystem.<init>(NPOIFSFileSystem.java:164)
at
org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:164)
at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281)
--
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]