pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/pam-mkhomedir Add a patch fixing...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5ad6d579ebec
branches:  trunk
changeset: 307280:5ad6d579ebec
user:      he <he%pkgsrc.org@localhost>
date:      Fri May 04 14:52:26 2018 +0000
description:
Add a patch fixing a typo and potential 10-byte buffer overrun.

diffstat:

 security/pam-mkhomedir/Makefile                       |   3 ++-
 security/pam-mkhomedir/patches/patch-pam__mkhomedir.c |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r be1c3700d368 -r 5ad6d579ebec security/pam-mkhomedir/Makefile
--- a/security/pam-mkhomedir/Makefile   Fri May 04 14:28:32 2018 +0000
+++ b/security/pam-mkhomedir/Makefile   Fri May 04 14:52:26 2018 +0000
@@ -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 -r be1c3700d368 -r 5ad6d579ebec security/pam-mkhomedir/patches/patch-pam__mkhomedir.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/pam-mkhomedir/patches/patch-pam__mkhomedir.c     Fri May 04 14:52:26 2018 +0000
@@ -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)
+                       {



Home | Main Index | Thread Index | Old Index