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 2007/12/14 11:32:26 UTC
DO NOT REPLY [Bug 44078] New: - ArrayIndexOutOfBoundsException in TableSprmUncompressor [PATCH]
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: dev@poi.apache.org
ReportedBy: nverwer@email.com
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 44078] - ArrayIndexOutOfBoundsException in TableSprmUncompressor [PATCH]
Posted by bu...@apache.org.
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
------- Additional Comments From nverwer@email.com 2007-12-14 02:33 -------
Created an attachment (id=21275)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21275&action=view)
Word document causing the exception
When you open and save this file in Word2003, the problem disappears. But it
does happen when you use Word97.
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 44078] - ArrayIndexOutOfBoundsException in TableSprmUncompressor [PATCH]
Posted by bu...@apache.org.
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
nick@torchbox.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From nick@torchbox.com 2007-12-17 06:19 -------
Thanks for this patch, it has been applied
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 44078] - ArrayIndexOutOfBoundsException in TableSprmUncompressor [PATCH]
Posted by bu...@apache.org.
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
------- Additional Comments From nverwer@email.com 2007-12-14 02:34 -------
Created an attachment (id=21276)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21276&action=view)
Patch for this bug
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org