Summary: | [PATCH] NegativeArraySizeException parsing xls file containing OLE objects | ||
---|---|---|---|
Product: | POI | Reporter: | Trejkaz (pen name) <trejkaz> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | PatchAvailable |
Priority: | P2 | ||
Version: | 3.0-FINAL | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
Attachments: |
Test.java
ole2-embedding.xls Proposed fix |
Description
Trejkaz (pen name)
2007-08-13 22:50:47 UTC
Created attachment 20659 [details]
Test.java
Created attachment 20660 [details]
ole2-embedding.xls
Created attachment 20662 [details]
Proposed fix
Code in EscherBlipRecord.getRecordSize() was saying that the length of the
record was the length of the blip data plus 4, but the header size is actually
8.
Fixed by using the actual HEADER_SIZE constant. File now at least parses as
expected.
Thanks, patch applied, and tests added |