Share

JHOVE

Tracker: Bugs

5 ArrayIndexOutOfBoundsException on PDF module - ID: 2890751
Last Update: Comment added ( sf-robot )

PDF with invalid object number in the cross reference stream causes an
ArrayIndexOutOfBoundsException in JHOVE. A sample file has been sent to
Harvard JHOVE group in a separate email.


Carol ( carolchou ) - 2009-11-02 15:37

5

Closed

Fixed

Gary McGath

Modules

None

Public


Comments ( 3 )

Date: 2010-01-01 02:20
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2009-12-17 18:21
Sender: garymcgathProject Admin

The issue of why it sees a bad object number still isn't resolved, but I'll
close this for JHOVE 1.5, since at least the reported bug has been fixed.


Date: 2009-11-02 16:36
Sender: garymcgathProject Admin

What's happening is that a bad object number is being read and then indexed
into an array. I've added bounds checking, so that JHOVE will report the
file as not well-formed and give an appropriate error message; users can
grab the latest PDFModule.java and compile it in their build.

But since I can open the file in Acrobat, I suspect that the PDF module is
doing something else wrong that's causing it to get the bad object number
in the first place, so until I've done more checking I'll leave this bug
open.


Attached File

No Files Currently Attached

Changes ( 7 )

Field Old Value Date By
close_date 2009-12-17 18:21 2010-01-01 02:20 sf-robot
allow_comments 1 2010-01-01 02:20 sf-robot
status_id Pending 2010-01-01 02:20 sf-robot
close_date - 2009-12-17 18:21 garymcgath
resolution_id None 2009-12-17 18:21 garymcgath
status_id Open 2009-12-17 18:21 garymcgath
assigned_to nobody 2009-11-02 16:36 garymcgath