https://bz.apache.org/bugzilla/show_bug.cgi?id=61550
Bug ID: 61550
Summary: POI 3.17 buffer overrun when reading corrupt document
summary information property set
Product: POI
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: HPSF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
I have an MPP file which appears to have a corrupt document summary information
property set. Attempting to read it produces the stack trace below. The issue
is that the size of the CodePageString is larger than the data remaining in the
input stream.
Microsoft Project will open the file successfully, it appears to ignore the
corrupt properties.
Unfortunately I can't share the example data with you as it belongs to a
customer.
Caused by: java.lang.RuntimeException: Buffer overrun
at
org.apache.poi.util.LittleEndianByteArrayInputStream.checkPosition(LittleEndianByteArrayInputStream.java:40)
at
org.apache.poi.util.LittleEndianByteArrayInputStream.readFully(LittleEndianByteArrayInputStream.java:119)
at org.apache.poi.hpsf.CodePageString.read(CodePageString.java:57)
at
org.apache.poi.hpsf.TypedPropertyValue.readValue(TypedPropertyValue.java:135)
at org.apache.poi.hpsf.VariantSupport.read(VariantSupport.java:174)
at org.apache.poi.hpsf.Property.<init>(Property.java:179)
at org.apache.poi.hpsf.MutableProperty.<init>(MutableProperty.java:53)
at org.apache.poi.hpsf.Section.<init>(Section.java:237)
at org.apache.poi.hpsf.MutableSection.<init>(MutableSection.java:41)
at org.apache.poi.hpsf.PropertySet.init(PropertySet.java:494)
at org.apache.poi.hpsf.PropertySet.<init>(PropertySet.java:196)
--
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]