Bug 94333 [Import/Export] Problems with reading long file names in tar files
The code which performs a read() on a LongLink name in TarInputStream does not check if it has read the entire name. This causes errors when importing tar files with long names.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java
throw new TarException(DataTransferMessages.TarImport_invalid_tar_format, nfe); 
		}
		entry.setSize(fileSize);
		nextEOF = fileSize;
		if(fileSize % 512 > 0) {
			nextEntry = fileSize + (512 - (fileSize % 512));
		} else {
			nextEntry = fileSize;
		}
		filepos += (nextEntry + 512);
		return entry;
	}
	/**
	 * Moves ahead to the next file in the tar archive and returns
	 * a TarEntry object describing it.
	 * 
	 * @return the next entry in the tar file
	 * @throws TarException
	 * @throws IOException
	 */
	public TarEntry getNextEntry() throws TarException, IOException {
		TarEntry entry = getNextEntryInternal();
		if(entry != null && entry.getName().equals("././@LongLink")) { 
			
			
			
			byte[] longNameData = new byte[(int) entry.getSize()];
			read(longNameData, 0, longNameData.length);
			int pos = 0;
			while (pos < longNameData.length && longNameData[pos] != 0)