Merge remote-tracking branch 'origin/GP-5221_dwarf_debug_relative_paths--SQUASHED' into Ghidra_11.3

This commit is contained in:
Ryan Kurtz 2025-01-07 20:20:19 -05:00
commit 8e7f0034e5
5 changed files with 274 additions and 69 deletions

View file

@ -104,6 +104,9 @@ public final class SourceFile implements Comparable<SourceFile> {
throw new IllegalArgumentException(
"SourceFile URI must represent a file (not a directory)");
}
if (path.startsWith("/../")) {
throw new IllegalArgumentException("path must be absolute after normalization");
}
}
catch (URISyntaxException e) {
throw new IllegalArgumentException("path not valid: " + e.getMessage());