You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2008/03/19 23:21:28 UTC

DO NOT REPLY [Bug 44643] New: [PATCH] RecordInputStream. readCompressedUnicode throws exception even if length is zero

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: neil@JAMMConsulting.com


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 44643] [PATCH] RecordInputStream. readCompressedUnicode throws exception even if length is zero

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44643


Nick Burch <ni...@torchbox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Nick Burch <ni...@torchbox.com>  2008-03-20 04:01:13 PST ---
Thanks for this patch, applied to svn along with a unit test


-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 44643] [PATCH] RecordInputStream. readCompressedUnicode throws exception even if length is zero

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44643





--- Comment #1 from Neil Aggarwal <ne...@JAMMConsulting.com>  2008-03-19 15:22:40 PST ---
Created an attachment (id=21693)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21693)
Excel sheet that causes the error

Trying to read the attached spreadsheet will cause RecordInputStream to throw
an exception.


-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org