Skip to content

Commit b712b18

Browse files
committed
Merge remote-tracking branch
'origin/GP-0_d-millar_fix_for_5538--SQUASHED' into patch (Closes NationalSecurityAgency#5538)
2 parents 36695e8 + ce61af6 commit b712b18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Ghidra/Debug/Debugger-agent-dbgeng/src/main/java/agent/dbgeng/manager/cmd/DbgLaunchProcessCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ public void invoke() {
8888

8989
initialDirectory = fixPath(initialDirectory);
9090
environment = fixPath(environment);
91+
// NB: The intent here is to enable multi-line input via a single dialog field
92+
environment = environment.replace("\\0", "\0");
9193

9294
dbgeng.createProcess(dbgeng.getLocalServer(), StringUtils.join(newArgs, " "),
9395
initialDirectory, environment, createFlags, engCreateFlags, verifierFlags);
@@ -103,7 +105,6 @@ private String fixPath(String input) {
103105
output = output.substring(1);
104106
}
105107
output = output.replace("/", "\\");
106-
output = output.replace("\\0", "\0");
107108
return output;
108109
}
109110
}

0 commit comments

Comments
 (0)