https://issues.apache.org/bugzilla/show_bug.cgi?id=55604
Bug ID: 55604
Summary: Issue related to SprmBuffer class
Product: POI
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: HWPF
Assignee: [email protected]
Reporter: [email protected]
Created attachment 30890
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30890&action=edit
Patch with fix about SprmBuffer problem
We had a issue when we tried to get the body content of a MS Word 97 file. We
got this exception:
.
.
Caused by: java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at org.apache.poi.hwpf.sprm.SprmBuffer.append(SprmBuffer.java:128)
at org.apache.poi.hwpf.model.PAPBinTable.rebuild(PAPBinTable.java:293)
at org.apache.poi.hwpf.model.PAPBinTable.rebuild(PAPBinTable.java:116)
at org.apache.poi.hwpf.HWPFOldDocument.<init>(HWPFOldDocument.java:136)
at
org.apache.tika.parser.microsoft.WordExtractor.parseWord6(WordExtractor.java:437)
at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:79)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:186)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:161)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
... 15 more
so We did a fix to avoid that exception, I am attaching a patch file with the
fix.
Regards
--
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]