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

           Summary: [PATCH] RecordInputStream.readCompressedUnicode throws
                    exception even if length is zero
           Product: POI
           Version: 3.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=21692)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21692)
Patch to add check for length equal to zero.

The method readCompressedUnicode will throw an illegal length exception even if
the passed in length is zero.

I added a check to return an empty string when the length is zero.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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