Bug 39524

Summary: FIBFieldHandler fails if it runs out of data
Product: POI Reporter: Trejkaz (pen name) <trejkaz>
Component: HWPFAssignee: POI Developers List <dev>
Status: RESOLVED LATER    
Severity: major    
Priority: P2    
Version: 3.0-dev   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description Trejkaz (pen name) 2006-05-09 05:17:37 UTC
If FIBFieldHandler runs out of the table stream before it finishes reading,
unexpected things occur.

For instance, the constructor for UnhandledDataStructure will throw an
ArrayIndexOutOfBoundsException if it tries to read more than the length.  This
should be prevented by not instantiating structures if you know they require
more data than is available.
Comment 1 Trejkaz (pen name) 2006-05-09 05:25:34 UTC

*** This bug has been marked as a duplicate of 10335 ***
Comment 2 Trejkaz (pen name) 2008-04-27 20:07:51 UTC
...what the hell did I do back then?  Whatever I did, clearly the bug I marked it as a duplicate of is unrelated.

Comment 3 Nick Burch 2008-04-28 04:08:35 UTC
Any chance you could upload a problem file for this? A patch too would be great if you happen to have knocked one up :)
Comment 4 Trejkaz (pen name) 2008-04-28 18:22:53 UTC
I haven't created a patch yet, no... and I don't seem to be able to find a file which exhibits the problem.  The bug on our end was raised by someone else and they didn't put a file on the bug either.

Maybe we can close it for now then... I'll go with that and can always reopen it if we find the problem again.