[Bug 61550] New: POI 3.17 buffer overrun when reading corrupt document summary information property set

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 61550] New: POI 3.17 buffer overrun when reading corrupt document summary information property set

Bugzilla from bugzilla@apache.org
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: [hidden email]
          Reporter: [hidden email]
  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: [hidden email]
For additional commands, e-mail: [hidden email]