https://bz.apache.org/bugzilla/show_bug.cgi?id=60305
Bug ID: 60305
Summary: Gracefully handle AIOOBE in Pictures stream in HSLF
Product: POI
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: HSLF
Assignee: [email protected]
Reporter: [email protected]
On TIKA-2142, Seva Alekseyev shared a PPT that causes an AIOOBE when reading
the "Pictures" stream. When the exception is hit, the parser has read in 81
pictures. However, when we open the file in PPT and count the number of images
and when we count the number of HSLFPictureShapes we get when we iterate
through the slides programmatically, there are only 78 images.
If I understand correctly, when we read the "Pictures" stream, we don't know
how many records to expect. We read the Pictures stream before we parse the
slides and determine which are most recent etc., and there is no header on the
Picture stream (OfficeArtBStoreDelay).
I propose we check for an AIOOBE in 'readPictures' within HSLFSlideShowImpl and
log a warning if we would have hit one.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]