The branch main has been updated by jhb:

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

commit 5ceec6c1054e6bde3b72672f33705a044fc0eb86
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-09-28 21:02:59 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2022-09-28 21:04:48 +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
---
 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 50a1d03ebc43..2e9e272eaa77 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;
 

Reply via email to