8295304: Runtime support improvements

Reviewed-by: rhalade, rriggs, bchristi
(cherry picked from commit 3656939a6a)
This commit is contained in:
Ian Graves
2022-11-14 18:16:35 +00:00
committed by Vitaly Provodin
parent 95037ac55d
commit cb4ee7b55b

View File

@@ -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");
}
}