Skip to content

Commit

Permalink
8295304: Runtime support improvements
Browse files Browse the repository at this point in the history
Reviewed-by: mbalao, andrew
Backport-of: 9c31d51bd5fc17e3914142c2461f3abfe71651d0
  • Loading branch information
Alexei Voitylov authored and gnu-andrew committed Apr 17, 2023
1 parent 301c9ad commit a7fbe33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdk/src/share/classes/java/lang/ProcessBuilder.java
Expand Up @@ -1019,8 +1019,8 @@ public Process start() throws IOException {

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

0 comments on commit a7fbe33

Please sign in to comment.