-
Bug
-
Resolution: Fixed
-
P4
-
11, 17, 21, 22
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8329687 | 22.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b03 |
JDK-8331355 | 21.0.5-oracle | Ravi Reddy | P4 | Resolved | Fixed | b01 |
JDK-8329879 | 21.0.4 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
JDK-8333747 | 17.0.13 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
"This command is not for general use and should only be run as the result of a call to ProcessBuilder.start() or Runtime.exec() in a java application"
- /* argv[0] contains the fd number to read all the child info */
+ /* argv[1] contains the fd number to read all the child info */
int r, fdin, fdout;
- r = sscanf (argv[argc-1], "%d:%d", &fdin, &fdout);
+ r = sscanf (argv[1], "%d:%d", &fdin, &fdout);
Without args, argc is 1, so argv[1] is an out of bound access.
- backported by
-
JDK-8329687 jspawnhelper without args fails with segfault
- Resolved
-
JDK-8329879 jspawnhelper without args fails with segfault
- Resolved
-
JDK-8331355 jspawnhelper without args fails with segfault
- Resolved
-
JDK-8333747 jspawnhelper without args fails with segfault
- Resolved
- relates to
-
JDK-8310265 (process) jspawnhelper should not use argv[0]
- Closed
-
JDK-8325621 Improve jspawnhelper version checks
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/af699ffa
-
Commit openjdk/jdk21u-dev/1c4479fd
-
Commit openjdk/jdk22u/5d7f7da0
-
Commit openjdk/jdk/26274709
-
Review openjdk/jdk17u-dev/2339
-
Review openjdk/jdk21u-dev/414
-
Review openjdk/jdk22u/126
-
Review openjdk/jdk/18074
-
Review openjdk/jdk/18112