mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-5221 handle relative paths in dwarf source info
This commit is contained in:
parent
860c754484
commit
60a7d049b1
5 changed files with 274 additions and 69 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue