Source-Changes-HG archive

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

[src/trunk]: src/lib/libpam/modules/pam_krb5 there is no potential overflow a...



details:   https://anonhg.NetBSD.org/src/rev/b71b8dd792a9
branches:  trunk
changeset: 744608:b71b8dd792a9
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Feb 07 23:28:59 2020 +0000

description:
there is no potential overflow anymore (thanks Kamil)

diffstat:

 lib/libpam/modules/pam_krb5/pam_krb5.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 9ec9d03b9037 -r b71b8dd792a9 lib/libpam/modules/pam_krb5/pam_krb5.c
--- a/lib/libpam/modules/pam_krb5/pam_krb5.c    Fri Feb 07 22:13:35 2020 +0000
+++ b/lib/libpam/modules/pam_krb5/pam_krb5.c    Fri Feb 07 23:28:59 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pam_krb5.c,v 1.27 2020/02/07 22:13:35 christos Exp $   */
+/*     $NetBSD: pam_krb5.c,v 1.28 2020/02/07 23:28:59 christos Exp $   */
 
 /*-
  * This pam_krb5 module contains code that is:
@@ -53,7 +53,7 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: src/lib/libpam/modules/pam_krb5/pam_krb5.c,v 1.22 2005/01/24 16:49:50 rwatson Exp $");
 #else
-__RCSID("$NetBSD: pam_krb5.c,v 1.27 2020/02/07 22:13:35 christos Exp $");
+__RCSID("$NetBSD: pam_krb5.c,v 1.28 2020/02/07 23:28:59 christos Exp $");
 #endif
 
 #include <sys/types.h>
@@ -467,7 +467,6 @@
                        cache_name = cache_name_buf;
                }
 
-               /* XXX potential overflow */
                cache_name_buf2 = p = calloc(len, sizeof(char));
                q = cache_name;
        



Home | Main Index | Thread Index | Old Index