pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/pam-mkhomedir



Module Name:    pkgsrc
Committed By:   he
Date:           Fri May  4 14:52:26 UTC 2018

Modified Files:
        pkgsrc/security/pam-mkhomedir: Makefile
Added Files:
        pkgsrc/security/pam-mkhomedir/patches: patch-pam__mkhomedir.c

Log Message:
Add a patch fixing a typo and potential 10-byte buffer overrun.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/security/pam-mkhomedir/Makefile
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/pam-mkhomedir/patches/patch-pam__mkhomedir.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/pam-mkhomedir/Makefile
diff -u pkgsrc/security/pam-mkhomedir/Makefile:1.8 pkgsrc/security/pam-mkhomedir/Makefile:1.9
--- pkgsrc/security/pam-mkhomedir/Makefile:1.8  Wed Apr 19 11:24:38 2017
+++ pkgsrc/security/pam-mkhomedir/Makefile      Fri May  4 14:52:26 2018
@@ -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

Added files:

Index: pkgsrc/security/pam-mkhomedir/patches/patch-pam__mkhomedir.c
diff -u /dev/null pkgsrc/security/pam-mkhomedir/patches/patch-pam__mkhomedir.c:1.1
--- /dev/null   Fri May  4 14:52:26 2018
+++ pkgsrc/security/pam-mkhomedir/patches/patch-pam__mkhomedir.c        Fri May  4 14:52:26 2018
@@ -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