Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6-0]: src/sys/lib/libsa Pull up following revision(s) (requested ...
details: https://anonhg.NetBSD.org/src/rev/139250775581
branches: netbsd-6-0
changeset: 775156:139250775581
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sat Sep 24 13:10:57 2016 +0000
description:
Pull up following revision(s) (requested by dholland in ticket #1406):
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 326da4717955 -r 139250775581 sys/lib/libsa/checkpasswd.c
--- a/sys/lib/libsa/checkpasswd.c Sat Sep 24 13:06:47 2016 +0000
+++ b/sys/lib/libsa/checkpasswd.c Sat Sep 24 13:10:57 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.20.1 2016/09/24 13:10:57 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