summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2018-05-04 14:52:26 +0000
committerhe <he@pkgsrc.org>2018-05-04 14:52:26 +0000
commit3b509e291c6285dd129291d282d2fc0819eb8541 (patch)
tree6f68cf10d310422655b54946bc91b3ee290b03ce /security
parent5bec16d824bf408ad0caa72fa2c9ceba1d701d21 (diff)
downloadpkgsrc-3b509e291c6285dd129291d282d2fc0819eb8541.tar.gz
Add a patch fixing a typo and potential 10-byte buffer overrun.
Diffstat (limited to 'security')
-rw-r--r--security/pam-mkhomedir/Makefile3
-rw-r--r--security/pam-mkhomedir/patches/patch-pam__mkhomedir.c15
2 files changed, 17 insertions, 1 deletions
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)
+ {