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,14 +1121,29 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
try (RefdFile fileRef = fsService.getRefdFile(fsrl, monitor)) {
|
if (fsService.isLocal(fsrl)) {
|
||||||
if (fileRef != null) {
|
try {
|
||||||
result.add(
|
// It might be a container file that we want to look inside of, so probe
|
||||||
new LibrarySearchPath(fileRef.fsRef.dup(), fileRef.file.getPath()));
|
FileSystemRef fileRef =
|
||||||
|
fsService.probeFileForFilesystem(fsrl, monitor, null);
|
||||||
|
if (fileRef != null) {
|
||||||
|
result.add(new LibrarySearchPath(fileRef, null));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (IOException e) {
|
||||||
|
log.appendMsg(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
else {
|
||||||
log.appendMsg(e.getMessage());
|
try (RefdFile fileRef = fsService.getRefdFile(fsrl, monitor)) {
|
||||||
|
if (fileRef != null) {
|
||||||
|
result.add(
|
||||||
|
new LibrarySearchPath(fileRef.fsRef.dup(), fileRef.file.getPath()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (IOException e) {
|
||||||
|
log.appendMsg(e.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
success = true;
|
success = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue