Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2022 18:36:37 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: 87bc509f8ea5 - stable/13 - pam_unix: Fix mismatch in array bounds for make_salt().
Message-ID:  <202211111836.2ABIabEf003826@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=87bc509f8ea554d40d8a8e7f5782642553f14671

commit 87bc509f8ea554d40d8a8e7f5782642553f14671
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-09-28 21:02:59 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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;
 



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