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 2011/10/14 20:58:33 UTC
DO NOT REPLY [Bug 52032] New: [PATCH] HWPF - mysterious
ArrayIndexOutofBoundsException with no stack trace
https://issues.apache.org/bugzilla/show_bug.cgi?id=52032
Bug #: 52032
Summary: [PATCH] HWPF - mysterious
ArrayIndexOutofBoundsException with no stack trace
Product: POI
Version: 3.8-dev
Platform: PC
Status: NEW
Severity: major
Priority: P2
Component: HWPF
AssignedTo: dev@poi.apache.org
ReportedBy: rpi_alum@yahoo.com
Classification: Unclassified
Created attachment 27776
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27776
Patch of files to get AIOOB stack trace out
I have a collection of files that when being processed via Tika will encounter
a RuntimeException stemming from a ArrayIndexOutofBoundsException with no stack
trace or Cause information. The root AIOOB issue was fixed for many of these
files in the daily build after the 3.8-b4 release, but was re-introduced by the
HWPF rework done in revision 1178083. (The files are successful with revision
1178063)
The files that produce this error are confirmed as valid with the MS's
bffvalidator utility. Due to the sensitive nature of their contents, I'm not
able to include them as examples. I may be able to get a coworker to help me
hex-edit out the sensitive info so that I can include them at a later point to
help fix the root issue causing the AIOOB.
In the meantime , I was able to pinpoint the location where the mysterious
AIOOB exception was spawning from. It is originating out of ListLevel() when
performing a LittleEndian.getShort().
The patch I've included does two things:
* Logs a warning message when the buffers bounds are about to be over blown.
* Catches and rethrows the AIOOB exception from the getShort() call as a
RuntimeException, so that additional stack trace information is available. (At
least it is now visible in Tika)
The patch should help highlight future documents that encounter this problem
and at least make it easier with tracking down and making the fix to get them
to work in the future.
--
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 52032] [PATCH] HWPF - mysterious
ArrayIndexOutofBoundsException with no stack trace
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52032
--- Comment #3 from Jeremy <rp...@yahoo.com> 2011-10-18 18:34:17 UTC ---
Created attachment 27808
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27808
Hex-edited Sample test file to blow AIOOB #3
Test case file 3... Hexedited original to remove sensitive information. Post
hex-editing first attempt produced stack trace, subsequent runs did not. This
file worked with revision 1178063
--
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 52032] [PATCH] HWPF - mysterious
ArrayIndexOutofBoundsException with no stack trace
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52032
--- Comment #1 from Jeremy <rp...@yahoo.com> 2011-10-18 18:33:02 UTC ---
Created attachment 27806
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27806
Hex-edited Sample test file to blow AIOOB #1
Test case file 1... Hexedited original to remove sensitive information. Post
hex-editing first attempt produced stack trace, subsequent runs did not. This
file worked with revision 1178063
--
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 52032] [BUG] & [partial-PATCH] HWPF -
ArrayIndexOutofBoundsException with no stack trace (broken after revision
1178063)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52032
Jeremy <rp...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[PATCH] HWPF - mysterious |[BUG] & [partial-PATCH]
|ArrayIndexOutofBoundsExcept |HWPF -
|ion with no stack trace |ArrayIndexOutofBoundsExcept
| |ion with no stack trace
| |(broken after revision
| |1178063)
OS/Version| |All
--
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 52032] [BUG] & [partial-PATCH] HWPF -
ArrayIndexOutofBoundsException with no stack trace (broken after revision
1178063)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52032
Sergey Vladimirov <vl...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #4 from Sergey Vladimirov <vl...@gmail.com> 2011-10-29 23:58:51 UTC ---
shall be fixed in revision 1195077
Please, check.
--
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 52032] [PATCH] HWPF - mysterious
ArrayIndexOutofBoundsException with no stack trace
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52032
--- Comment #2 from Jeremy <rp...@yahoo.com> 2011-10-18 18:33:50 UTC ---
Created attachment 27807
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27807
Hex-edited Sample test file to blow AIOOB #2
Test case file 2... Hexedited original to remove sensitive information. This
file worked with revision 1178063
--
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 52032] [BUG] & [partial-PATCH] HWPF -
ArrayIndexOutofBoundsException with no stack trace (broken after revision
1178063)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52032
Jeremy <rp...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |FIXED
--- Comment #5 from Jeremy <rp...@yahoo.com> 2011-11-07 13:43:49 UTC ---
Fix appears to have resolved issue for 90% of files. Will try to get examples
of the remaining cases and open a new bug if those files are valid and still
failing.
Thanks for the fix!!
--
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