[ 
https://issues.apache.org/jira/browse/TIKA-3081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Allison resolved TIKA-3081.
-------------------------------
    Fix Version/s: 1.24.1
       Resolution: Fixed

> TikaInputStream's skip() should use the equivalent of IOUtils.skipFully()
> -------------------------------------------------------------------------
>
>                 Key: TIKA-3081
>                 URL: https://issues.apache.org/jira/browse/TIKA-3081
>             Project: Tika
>          Issue Type: Task
>            Reporter: Tim Allison
>            Priority: Major
>             Fix For: 1.24.1
>
>
> Some parsers may assume that skip() returns the number of bytes actually 
> skipped.  As we've learned, FileInputStream's return value can be completely 
> divorced from reality, and it can report that the stream is skipping even 
> past the EOF.
> If we convert TikaInputStream's skip() to something that will throw an 
> exception if a 3rd party parser tries to skip past the end of a file, we may 
> prevent an entire class of bugs.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to