Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2022 18:36:38 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e66a9d0570d2 - stable/13 - sh: Fix mismatch in array bounds for vforkexecshell().
Message-ID:  <202211111836.2ABIacTJ003856@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e66a9d0570d2f0eb6e1b16b423dc9d07a04eecd4

commit e66a9d0570d2f0eb6e1b16b423dc9d07a04eecd4
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-09-28 21:04:08 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-11-11 18:18:53 +0000

    sh: Fix mismatch in array bounds for vforkexecshell().
    
    Reviewed by:    imp, jilles, emaste
    Reported by:    GCC -Warray-parameter
    Differential Revision:  https://reviews.freebsd.org/D36760
    
    (cherry picked from commit 10297a9ed488a9fff159ae495b61185e6f50e22a)
---
 bin/sh/jobs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/sh/jobs.h b/bin/sh/jobs.h
index d0caf0638617..411d08f27a67 100644
--- a/bin/sh/jobs.h
+++ b/bin/sh/jobs.h
@@ -55,7 +55,7 @@ void setjobctl(int);
 void showjobs(int, int);
 struct job *makejob(union node *, int);
 pid_t forkshell(struct job *, union node *, int);
-pid_t vforkexecshell(struct job *, char **, char **, const char *, int, int []);
+pid_t vforkexecshell(struct job *, char **, char **, const char *, int, int [2]);
 int waitforjob(struct job *, int *);
 int stoppedjobs(void);
 int backgndpidset(void);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211111836.2ABIacTJ003856>