mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8295304: Runtime support improvements
Reviewed-by: rhalade, rriggs, bchristi
This commit is contained in:
parent
c06135b5a6
commit
3656939a6a
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue