mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-4050: Making
AbstractLibrarySupportLoader.getSystemLibrarySearchPaths() more robust
This commit is contained in:
@@ -1111,8 +1111,11 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
|
||||
if (isLoadSystemLibraries(options) || shouldSearchAllPaths(options)) {
|
||||
List<Path> searchPaths = new ArrayList<>();
|
||||
for (String str : LibrarySearchPathManager.getLibraryPathsList()) {
|
||||
if (str.isBlank()) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
Path path = Path.of(str).normalize();
|
||||
Path path = Path.of(str.trim()).normalize();
|
||||
if (path.isAbsolute() && Files.exists(path)) {
|
||||
searchPaths.add(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user