Bug 51890 - ArrayIndexOutOfBounds ExceptionPicture.fillRawImageContent
Summary: ArrayIndexOutOfBounds ExceptionPicture.fillRawImageContent
Status: RESOLVED DUPLICATE of bug 51902
Alias: None
Product: POI
Classification: Unclassified
Component: HWPF (show other bugs)
Version: 3.8-dev
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 10:05 UTC by pqueixalos
Modified: 2011-09-30 13:26 UTC (History)
0 users



Attachments
Attachment throwing this ArrayIndexOutOfBoundsException (43.50 KB, application/msword)
2011-09-26 10:05 UTC, pqueixalos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pqueixalos 2011-09-26 10:05:36 UTC
Created attachment 27596 [details]
Attachment throwing this ArrayIndexOutOfBoundsException

tested with r1174868 (through Tika)

java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at org.apache.poi.hwpf.usermodel.Picture.fillRawImageContent(Picture.java:363)
	at org.apache.poi.hwpf.usermodel.Picture.getRawContent(Picture.java:203)
	at org.apache.poi.hwpf.usermodel.Picture.fillImageContent(Picture.java:372)
	at org.apache.poi.hwpf.usermodel.Picture.getContent(Picture.java:191)
	at org.apache.poi.hwpf.usermodel.Picture.suggestPictureType(Picture.java:330)
	at org.apache.poi.hwpf.usermodel.Picture.suggestFileExtension(Picture.java:315)
	at org.apache.poi.hwpf.usermodel.Picture.suggestFullFileName(Picture.java:150)
	at org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:504)
	at org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:488)
	at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:81)
	at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:200)
Comment 1 pqueixalos 2011-09-26 10:08:29 UTC
Sorry, tested revision was : r1175705

(In reply to comment #0)
> Created attachment 27596 [details]
> Attachment throwing this ArrayIndexOutOfBoundsException
> 
> tested with r1174868 (through Tika)
> 
> java.lang.ArrayIndexOutOfBoundsException
>     at java.lang.System.arraycopy(Native Method)
>     at
> org.apache.poi.hwpf.usermodel.Picture.fillRawImageContent(Picture.java:363)
>     at org.apache.poi.hwpf.usermodel.Picture.getRawContent(Picture.java:203)
>     at org.apache.poi.hwpf.usermodel.Picture.fillImageContent(Picture.java:372)
>     at org.apache.poi.hwpf.usermodel.Picture.getContent(Picture.java:191)
>     at
> org.apache.poi.hwpf.usermodel.Picture.suggestPictureType(Picture.java:330)
>     at
> org.apache.poi.hwpf.usermodel.Picture.suggestFileExtension(Picture.java:315)
>     at
> org.apache.poi.hwpf.usermodel.Picture.suggestFullFileName(Picture.java:150)
>     at
> org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:504)
>     at
> org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:488)
>     at
> org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:81)
>     at
> org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:200)
Comment 2 Sergey Vladimirov 2011-09-30 13:26:26 UTC

*** This bug has been marked as a duplicate of bug 51902 ***