Date: Wed, 28 Sep 2022 21:06:46 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 5ceec6c1054e - main - pam_unix: Fix mismatch in array bounds for make_salt(). Message-ID: <202209282106.28SL6k2g037539@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5ceec6c1054e6bde3b72672f33705a044fc0eb86 commit 5ceec6c1054e6bde3b72672f33705a044fc0eb86 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-09-28 21:02:59 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209282106.28SL6k2g037539>