Bug 51890

Summary: ArrayIndexOutOfBounds ExceptionPicture.fillRawImageContent
Product: POI Reporter: pqueixalos <pablo.queixalos>
Component: HWPFAssignee: POI Developers List <dev>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Attachment throwing this ArrayIndexOutOfBoundsException

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 ***