Ghidra is a software reverse engineering (SRE) framework
GP-0 fix unique file number generation for duplicate files
dev74736855be9eaf17ce
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/FileSystemIndexHelper.java b/Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/FileSystemIndexHelper.javaindex 6db9614b61..844b465a2a 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/FileSystemIndexHelper.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/FileSystemIndexHelper.java@@ -72,6 +72,7 @@ public class FileSystemIndexHelper<METADATATYPE> {public FileSystemIndexHelper(GFileSystem fs, FSRLRoot fsFSRL) {GFile rootGFile = GFileImpl.fromFSRL(fs, null, fsFSRL.withPath("/"), true, -1);rootDir = new FileData<>(rootGFile, null, -1);+ fileToEntryMap.put(rootDir.file, rootDir);directoryToListing.put(rootDir.file, new HashMap<>());}