From nobody Fri Nov 11 18:36:38 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N86qV4W7fz4dbbS; Fri, 11 Nov 2022 18:36:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N86qV45qzz3vDJ; Fri, 11 Nov 2022 18:36:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/5t93RwOIJhMKp2v4SOZxfW8Zhm/yTXo7XB4qtqXBjY=; b=TlPe8ZwONcR/Dg7y4AgGmiy/cD1138N7G9SpL0AIP0Dcrfz84iN2UhOm9sYr8yF677AZeA oGExW6MA7i4lU1zx9xflWubK3VkNRV3XEaAsk8frQzZeJP7rYymx2Mvdcc6KiC5pzdtfu7 SN7PrctwGYuOsqqC/rmxoKPoYhj5WJCVTb+up0g6rP3a8YaYsACl3mCNQeHRF/1crMAxOS G2L8roxOwFj+bkIKYCOiS8j2nmCTMQB1P7tJXZXlyJnsU8HNQobMS/jG+nKd0I7K2gVXM4 jWRE7ajGVydaOvxbJVb85hb8NgvJttYhBBaFvw3HAIaCpzBvua49TFSxzdnpHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/5t93RwOIJhMKp2v4SOZxfW8Zhm/yTXo7XB4qtqXBjY=; b=USfLJwLosia6SxLeTdUbhs0MgBDqxAEhTKWG4xnKcjWj7sWdI6d2bOZsulplW79OtNVZRq eGmLGXdztvqHew545CAVVkgv3BgLFUBo5OKKaULCThlCPwM96lfmzUmIhISdSr9o/VceWa RbUnHz0CzD2jIiUoZhbvDlcyFASVGFf9i2IAxxMh4Wtg/QK/k6ABxLX+1F+tdmPo/s2TjV Wt6Z4qYwHrSa3uLcGRNVJ8q5lIi/0KojpJowibUyMBqrE1T9aF8ahCagkpPXs+//wy3EAF WotUfb8WH8km70N0AVEcybHhHrI//0ZqRz6ziJxf8Tqb+GH+mUc+pNyoCqAGjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668191798; a=rsa-sha256; cv=none; b=to6cuDZm/3fSbwVK1C1ut/vVuuaRU0kHI2jbbRz4lp0kdAintlNm5Cqzt0nMsPijsD9BF+ HSADayzCJIrl6AdU6O2h+/n1QRhrlNx6wryXCd7CZwe1r0sEfp13TL0Xe2Z/vy3PAOWCh4 IK+q+1WYxA1g9Ik1PLG0nER+sL+3UymMTI/nVBFkxGkVNCa2MrJCAvA1kt8tF4kmLYQvr4 mdjeJ9HWq6XcErZ3WZPMfaOzT6QKgaibrc9mdZXF6xVzneMgUQRFjTVugM82YkO1hXZC/T agNTXWypQ8ZDeK8QCiScDatH6+nb8KOiD2y5ryrEt5FJ5VAXUrWi595XQyhobg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N86qV3BxXzt9K; Fri, 11 Nov 2022 18:36:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ABIacLT003857; Fri, 11 Nov 2022 18:36:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABIacTJ003856; Fri, 11 Nov 2022 18:36:38 GMT (envelope-from git) Date: Fri, 11 Nov 2022 18:36:38 GMT Message-Id: <202211111836.2ABIacTJ003856@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: e66a9d0570d2 - stable/13 - sh: Fix mismatch in array bounds for vforkexecshell(). List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e66a9d0570d2f0eb6e1b16b423dc9d07a04eecd4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e66a9d0570d2f0eb6e1b16b423dc9d07a04eecd4 commit e66a9d0570d2f0eb6e1b16b423dc9d07a04eecd4 Author: John Baldwin AuthorDate: 2022-09-28 21:04:08 +0000 Commit: John Baldwin 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);