DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44078>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44078

           Summary: ArrayIndexOutOfBoundsException in TableSprmUncompressor
                    [PATCH]
           Product: POI
           Version: 3.0-dev
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


In some rare cases, a ArrayIndexOutOfBoundsException occurs in
org.apache.poi.hwpf.sprm.TableSprmUncompressor.unCompressTAPOperation, line 152.

The problem appears to be that the grpprl does not hold data for every cell in a
row. Therefore, the computed index is larger than the length of the grpprl.

This has happened in some documents saved with Word97. When I open and save them
in Word2003, the problem disappears. The problem is reproduceable using Word97.

The proposed patch simply checks if the computed index is within bounds. This is
probably not addressing the root of the problem, but I could not come up with
something more intelligent.

I will add the patch and a word document which has this problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to