mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-5825: Fixing regression with loading libraries from container file
This commit is contained in:
parent
fc1c06ea39
commit
b5bfcc0fbf
1 changed files with 21 additions and 6 deletions
|
@ -1121,6 +1121,20 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
|
|||
continue;
|
||||
}
|
||||
|
||||
if (fsService.isLocal(fsrl)) {
|
||||
try {
|
||||
// It might be a container file that we want to look inside of, so probe
|
||||
FileSystemRef fileRef =
|
||||
fsService.probeFileForFilesystem(fsrl, monitor, null);
|
||||
if (fileRef != null) {
|
||||
result.add(new LibrarySearchPath(fileRef, null));
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
log.appendMsg(e.getMessage());
|
||||
}
|
||||
}
|
||||
else {
|
||||
try (RefdFile fileRef = fsService.getRefdFile(fsrl, monitor)) {
|
||||
if (fileRef != null) {
|
||||
result.add(
|
||||
|
@ -1131,6 +1145,7 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
|
|||
log.appendMsg(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
success = true;
|
||||
}
|
||||
finally {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue