poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 51891] [PATCH] Fix StringIndexOutOfBoundsException : Ole10Native.<init> (parsing word file)
Date Tue, 28 Jan 2014 13:49:49 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51891

--- Comment #6 from Arjohn Kampman <arjohn.kampman@gmail.com> ---
We ran into the same problem with the first couple of bytes being removed from
Ole10Native streams. We have checked some 30 to 40 files and can confirm that
the check for the storage class ID solves the issue. We've also noticed that
all ole10native streams that have the additional info at the start, also have a
CompObj entry with the string "Package" in it, like so:

Document: "CompObj" size = 80
   00000000 01 00 FE FF 03 0A 00 00 FF FF FF FF 0C 00 03 00 ................
   00000010 00 00 00 00 C0 00 00 00 00 00 00 46 08 00 00 00 ...........F....
   00000020 50 61 63 6B 61 67 65 00 08 00 00 00 50 61 63 6B Package.....Pack
   00000030 61 67 65 00 08 00 00 00 50 61 63 6B 61 67 65 00 age.....Package.
   00000040 F4 39 B2 71 00 00 00 00 00 00 00 00 00 00 00 00 .9.q............

The storage class ID check looks easier and more robust though.

Any idea when this patch will be applied to the trunk?

-- 
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


Mime
View raw message