From nobody Fri Nov 11 18:36:37 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 4N86qT4bJgz4dbBx; Fri, 11 Nov 2022 18:36:37 +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 4N86qT363hz3v2j; Fri, 11 Nov 2022 18:36:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191797; 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=LoOwbP0p9Jc+F4dpoDNcTsRe1YIIcrlec7q9dvJKfgs=; b=Ubor9iucp0eRN47Vp8Psoc4Y4/nYfrlDZHqfI9jZJx/vL939OK5JzfJ8uJZ0DdQjVX7GWX axmzyeBCXWuRXClJ327uC0TJp05ulDOIjG61df79AUGO6Fw/sJelr7mveanZCDIxJqRANd FHI9HwGn3SqoVrVYQy5GTdwgaWWmyjIhE5NtL00k6wZY+Mv3GkG8bzN4UpN3VdCO8GybBj j5ovHW+79/ojas/YJeDwZ9+vSbSYvYB2yLwrku48ljwAgSGLsaO4pjJ7pvUzzmh7i1GKXI 4rzB4dh4ahxUrc5nWZjqmUGWmhJkkMVqSV2KStXoO3o4keYZl8sSBJGkkTDKvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191797; 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=LoOwbP0p9Jc+F4dpoDNcTsRe1YIIcrlec7q9dvJKfgs=; b=EPXRejQX+dB7TWT0UmNhB8SVCWHG4j83CnkQOpitnIpgWG9ob2153PUtKkkUjIrCBGEJsf L96ewVN56Lc5aHY2gdflA4OgJOh+1Jbf9wkIlqy3UKppUuwx/bliPB7Ge8VddTxqFykBii z5rkB8lrcqeMsaT73Sim1/pfJeNJ1XUhJBDZZ7velfb5DzfoKhjke+AusCLcUmIWAnDQE1 sBmufQ+3A96AZysDoBcAjgvfCMfMpj8A2KO9ANBTb4AW2NbjguVWhMEPOCT+dzdOaYDpFI sAv72hfMmUfFauSfnZIHxVUQPVOuu9uwTTDnkVsQtWn5NzCW3yelSmoPwSEm0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668191797; a=rsa-sha256; cv=none; b=DsP4uY2OHvlEkUlhREYhQ14EgjnZkl1Xow8sfwUKKKHE297NuvoobwdvzPOCCamLLPNAAF xjmnRwVrMwYKGxf8iwc/WHaYwIpk4A/A6z43Q1XHuSebuAU5fMwuD8GU/t3qu/2x72k7/A gC27YMPbfomBA2RNuOI5CZCT+N8IEQxKYnkk0IwT31yD641RByJxylTgf3xWiocER9IhfM F8rEqzuXw+OWd6ZNNUpC8OshCKVvxNyuEQLzbvpSjBVFSierKEyohmjpn1OXk84quvkQMs 9xDuwPK9ViafTURrpK05h6GhBb8UFGRFjq0t9S/QAQBjEVgSWh2EditpxqODFQ== 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 4N86qT29jVztHF; Fri, 11 Nov 2022 18:36:37 +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 2ABIabVT003827; Fri, 11 Nov 2022 18:36:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABIabEf003826; Fri, 11 Nov 2022 18:36:37 GMT (envelope-from git) Date: Fri, 11 Nov 2022 18:36:37 GMT Message-Id: <202211111836.2ABIabEf003826@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: 87bc509f8ea5 - stable/13 - pam_unix: Fix mismatch in array bounds for make_salt(). 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: 87bc509f8ea554d40d8a8e7f5782642553f14671 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=87bc509f8ea554d40d8a8e7f5782642553f14671 commit 87bc509f8ea554d40d8a8e7f5782642553f14671 Author: John Baldwin AuthorDate: 2022-09-28 21:02:59 +0000 Commit: John Baldwin CommitDate: 2022-11-11 18:18:52 +0000 pam_unix: Fix mismatch in array bounds for make_salt(). Reviewed by: imp, emaste Reported by: GCC -Warray-parameter Differential Revision: https://reviews.freebsd.org/D36759 (cherry picked from commit 5ceec6c1054e6bde3b72672f33705a044fc0eb86) --- lib/libpam/modules/pam_unix/pam_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c index ecdd10772155..aa1952eb9c82 100644 --- a/lib/libpam/modules/pam_unix/pam_unix.c +++ b/lib/libpam/modules/pam_unix/pam_unix.c @@ -76,7 +76,7 @@ __FBSDID("$FreeBSD$"); #define LOCKED_PREFIX "*LOCKED*" #define LOCKED_PREFIX_LEN (sizeof(LOCKED_PREFIX) - 1) -static void makesalt(char []); +static void makesalt(char [SALTSIZE + 1]); static char password_hash[] = PASSWORD_HASH;