Change-Id: Iff3ee2a5cad352f6b1f658e4da462dfe45e21418
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/84852
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Hudson CI
entryEnumerationStream = new TarArchiveInputStream(fInputStream);
try {
curEntry = (TarArchiveEntry) entryEnumerationStream.getNextEntry();
+ if (!curEntry.isCheckSumOK()) {
+ throw new IOException("Error detected parsing initial entry header"); //$NON-NLS-1$
+ }
} catch (IOException e) {
fInputStream.close();
throw e;