revert throwing IOException if a parser tries to skip past the end of an inputstream...make TikaInputStream live up to its Java contract at the risk of infinite loops in dependencies that weren't written with security in mind.
@@ -758,9 +758,6 @@ public class TikaInputStream extends TaggedInputStream {
skipBuffer = new byte[4096];
}
long n = IOUtils.skip(super.in, ln, skipBuffer);
- if (n != ln) {
- throw new IOException("tried to skip "+ln + " but actually skipped: "+n);
- }
position += n;
return n;
}
