mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8295304: Runtime support improvements
Reviewed-by: rhalade, rriggs, bchristi
(cherry picked from commit 3656939a6a)
This commit is contained in:
committed by
Vitaly Provodin
parent
95037ac55d
commit
cb4ee7b55b
@@ -1116,8 +1116,8 @@ public final class ProcessBuilder
|
||||
|
||||
String dir = directory == null ? null : directory.toString();
|
||||
|
||||
for (int i = 1; i < cmdarray.length; i++) {
|
||||
if (cmdarray[i].indexOf('\u0000') >= 0) {
|
||||
for (String s : cmdarray) {
|
||||
if (s.indexOf('\u0000') >= 0) {
|
||||
throw new IOException("invalid null character in command");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user