From 3b509e291c6285dd129291d282d2fc0819eb8541 Mon Sep 17 00:00:00 2001 From: he Date: Fri, 4 May 2018 14:52:26 +0000 Subject: Add a patch fixing a typo and potential 10-byte buffer overrun. --- security/pam-mkhomedir/Makefile | 3 ++- security/pam-mkhomedir/patches/patch-pam__mkhomedir.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 security/pam-mkhomedir/patches/patch-pam__mkhomedir.c (limited to 'security') diff --git a/security/pam-mkhomedir/Makefile b/security/pam-mkhomedir/Makefile index 1a8c752d97e..1bef6905211 100644 --- a/security/pam-mkhomedir/Makefile +++ b/security/pam-mkhomedir/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.8 2017/04/19 11:24:38 jperkin Exp $ +# $NetBSD: Makefile,v 1.9 2018/05/04 14:52:26 he Exp $ DISTNAME= pam-mkhomedir-1 +PKGREVISION= 1 CATEGORIES= security MASTER_SITES= # empty DISTFILES= # empty diff --git a/security/pam-mkhomedir/patches/patch-pam__mkhomedir.c b/security/pam-mkhomedir/patches/patch-pam__mkhomedir.c new file mode 100644 index 00000000000..829adc0d828 --- /dev/null +++ b/security/pam-mkhomedir/patches/patch-pam__mkhomedir.c @@ -0,0 +1,15 @@ +$NetBSD: patch-pam__mkhomedir.c,v 1.1 2018/05/04 14:52:26 he Exp $ + +Fix typo causing buffer overflow(!) + +--- pam_mkhomedir.c.orig 2018-05-04 14:29:55.000000000 +0000 ++++ pam_mkhomedir.c +@@ -208,7 +208,7 @@ pam_mkhd_copy(pam_handle_t *pamh, const + return PAM_PERM_DENIED; + } + +- while ((len = read(ffd, newto, 65546)) > 0) ++ while ((len = read(ffd, newto, 65536)) > 0) + { + if (write(tfd, newto, len) == -1) + { -- cgit v1.2.3