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("not in tar format"); 
		}
		
		
		if(!isValidTarHeader(header)) {
			throw new TarException("not in tar format"); 
		}
		while (pos < 100 && header[pos] != 0)
			pos++;
		String name = new String(header, 0, pos, "UTF8"); 
		
		pos = 345;
		if(header[pos] != 0) {
			while (pos < 500 && header[pos] != 0)
				pos++;
			String prefix = new String(header, 345, pos - 345, "UTF8"); 
			name = prefix + "/" + name; 
		}
		
		TarEntry entry;
		if(longLinkName != null) {
			entry = new TarEntry(longLinkName, filepos);
			longLinkName = null;
		} else {
			entry = new TarEntry(name, filepos);
		}
		if(header[156] != 0) {