ASF Bugzilla – Attachment 21847 Details for
Bug 44857
Problem parsing Escher records, OutOfMemoryError from UnknownEscherRecord.fillFields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed fix, but probably dodgy
foo (text/plain), 784 bytes, created by
Trejkaz (pen name)
on 2008-04-23 00:27:17 UTC
(
hide
)
Description:
proposed fix, but probably dodgy
Filename:
MIME Type:
Creator:
Trejkaz (pen name)
Created:
2008-04-23 00:27:17 UTC
Size:
784 bytes
patch
obsolete
>--- dist/src/java/org/apache/poi/ddf/EscherMetafileBlip.java.orig 2008-04-23 17:24:41.811000000 +1000 >+++ dist/src/java/org/apache/poi/ddf/EscherMetafileBlip.java 2008-04-23 17:25:36.965000000 +1000 >@@ -83,8 +83,10 @@ > field_6_fCompression = data[pos]; pos++; > field_7_fFilter = data[pos]; pos++; > >- raw_pictureData = new byte[field_5_cbSave]; >- System.arraycopy( data, pos, raw_pictureData, 0, field_5_cbSave ); >+ // XXX: Trusting field_5_cbSave results in inconsistent record size. >+ int remainingBytes = bytesAfterHeader - 50; >+ raw_pictureData = new byte[remainingBytes]; >+ System.arraycopy( data, pos, raw_pictureData, 0, remainingBytes ); > > // 0 means DEFLATE compression > // 0xFE means no compression
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44857
:
21846
| 21847