|
|
@@ -35,6 +35,7 @@ import org.apache.poi.hslf.exceptions.CorruptPowerPointFileException; |
|
|
|
import org.apache.poi.hslf.exceptions.OldPowerPointFormatException; |
|
|
|
import org.apache.poi.poifs.filesystem.DirectoryNode; |
|
|
|
import org.apache.poi.poifs.filesystem.DocumentEntry; |
|
|
|
import org.apache.poi.poifs.filesystem.Entry; |
|
|
|
import org.apache.poi.poifs.filesystem.POIFSFileSystem; |
|
|
|
import org.apache.poi.util.IOUtils; |
|
|
|
import org.apache.poi.util.LittleEndian; |
|
|
@@ -120,8 +121,11 @@ public class CurrentUserAtom { |
|
|
|
*/ |
|
|
|
public CurrentUserAtom(DirectoryNode dir) throws IOException { |
|
|
|
// Decide how big it is |
|
|
|
DocumentEntry docProps = |
|
|
|
(DocumentEntry)dir.getEntry("Current User"); |
|
|
|
final Entry entry = dir.getEntry("Current User"); |
|
|
|
if (!(entry instanceof DocumentEntry)) { |
|
|
|
throw new IllegalArgumentException("Had unexpected type of entry for name: Current User: " + entry.getClass()); |
|
|
|
} |
|
|
|
DocumentEntry docProps = (DocumentEntry) entry; |
|
|
|
|
|
|
|
// If it's clearly junk, bail out |
|
|
|
if(docProps.getSize() > 131072) { |