Skip to content

Commit 808dc1b

Browse files
committed
8308350: Increase buffer size for jspawnhelper arguments
Reviewed-by: rriggs
1 parent a58e0ca commit 808dc1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.base/unix/native/libjava/ProcessImpl_md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ static pid_t
487487
spawnChild(JNIEnv *env, jobject process, ChildStuff *c, const char *helperpath) {
488488
pid_t resultPid;
489489
int i, offset, rval, bufsize, magic;
490-
char *buf, buf1[16];
490+
char *buf, buf1[(2 * 11) + 2]; // "%d:%d\0"
491491
char *hlpargs[2];
492492
SpawnInfo sp;
493493

0 commit comments

Comments
 (0)