Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7-0]: src/sys/lib/libsa Pull up following revision(s) (requested ...
details: https://anonhg.NetBSD.org/src/rev/d2befe3519f6
branches: netbsd-7-0
changeset: 801216:d2befe3519f6
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sun Sep 25 11:28:41 2016 +0000
description:
Pull up following revision(s) (requested by dholland in ticket #1250):
sys/lib/libsa/checkpasswd.c: revision 1.10
Check bounds on input. From Michael Plass.
diffstat:
sys/lib/libsa/checkpasswd.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r f6f1f3310cee -r d2befe3519f6 sys/lib/libsa/checkpasswd.c
--- a/sys/lib/libsa/checkpasswd.c Sun Sep 18 06:24:11 2016 +0000
+++ b/sys/lib/libsa/checkpasswd.c Sun Sep 25 11:28:41 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: checkpasswd.c,v 1.9 2011/01/06 02:45:13 jakllsch Exp $ */
+/* $NetBSD: checkpasswd.c,v 1.9.38.1 2016/09/25 11:28:41 bouyer Exp $ */
/*-
* Copyright (c) 1993
@@ -84,8 +84,10 @@
putchar('\n');
break;
default:
- *lp++ = c;
- putchar('*');
+ if ((size_t)(lp - buf) < sizeof(buf) - 1) {
+ *lp++ = c;
+ putchar('*');
+ }
break;
}
}
Home |
Main Index |
Thread Index |
Old Index