[ 
https://issues.apache.org/jira/browse/TIKA-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16085881#comment-16085881
 ] 

Tim Allison commented on TIKA-2428:
-----------------------------------

bq. Maybe there is an issue with IOUtils.skipFully()

Y, completely.  We need to defend against FileInputStream's potentially 
incorrect allegations, and we need to defend against an InputStream returning 
0, which can mean either that it hit the end of the InputStream _or_ it just 
didn't skip anything for this particular call.

So, y, my implementation of skipFully in POI is at fault here, and I need to 
fix it.

> EMFParser loops forever with corrupted files
> --------------------------------------------
>
>                 Key: TIKA-2428
>                 URL: https://issues.apache.org/jira/browse/TIKA-2428
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.15, 1.16
>            Reporter: Luis Filipe Nassif
>         Attachments: Carved-1285676.emf, Carved-1296288.emf, Carved-912866.emf
>
>
> EMFParser hangs with the attached corrupted EMF files.
> Sorry [~talli...@apache.org]! Just now having time to test against our 
> forensic test corpus...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to