Description
The following should throw IOException when given a truncated tar:
TarArchiveInputStream tarInput = new TarArchiveInputStream(inputStream); TarArchiveEntry currentEntry; while ((currentEntry = tarInput.getNextTarEntry()) != null) { }
Instead, it completes successfully. I've included a small simple .tar, and a truncated version of it. Untaring from the command line fails properly:
$ tar -tf test_truncated.tar test/ tar: Truncated tar archive tar: Error exit delayed from previous errors.