Tim Allison created TIKA-3081:
---------------------------------
Summary: 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
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)