https://issues.apache.org/bugzilla/show_bug.cgi?id=56194

            Bug ID: 56194
           Summary: [PATCH] Retrieve properly Clipbard format tag for
                    thumbnail
           Product: POI
           Version: 3.10
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HPSF
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 31351
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31351&action=edit
thumbnail get tag patch

As described in http://poi.apache.org/hpsf/thumbnails.html
tag value must be -1, -2 ,-3 or 0l

bu on lines 205 and 237 of org.apache.poi.hpsf.Thumbnail :
long clipboardFormatTag = LittleEndian.getUInt(getThumbnail(),
                                                       OFFSET_CFTAG);

Must be LittleEndian.getInt()
FF FF FF FF will be intepreted as -1 as expected, not ‘4294967295’.

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

Reply via email to