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

Hudson commented on TIKA-3081:
------------------------------

SUCCESS: Integrated in Jenkins build Tika-trunk #1798 (See 
[https://builds.apache.org/job/Tika-trunk/1798/])
TIKA-3081 -- convert TikaInputStream's skip to the equivalent of (tallison: 
[https://github.com/apache/tika/commit/aaa9f40e3c8119f1a155e3f1eea5c2ffe7f4f26f])
* (edit) tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java
* (edit) 
tika-parsers/src/main/java/org/apache/tika/parser/microsoft/onenote/OneNotePtr.java


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