Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libskey avoid an unlikely buffer truncation.
details: https://anonhg.NetBSD.org/src/rev/c07032e4a2bd
branches: trunk
changeset: 961199:c07032e4a2bd
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Apr 12 09:17:10 2021 +0000
description:
avoid an unlikely buffer truncation.
diffstat:
lib/libskey/put.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e95a6af50cd7 -r c07032e4a2bd lib/libskey/put.c
--- a/lib/libskey/put.c Mon Apr 12 09:15:52 2021 +0000
+++ b/lib/libskey/put.c Mon Apr 12 09:17:10 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: put.c,v 1.14 2019/10/03 17:08:26 christos Exp $ */
+/* $NetBSD: put.c,v 1.15 2021/04/12 09:17:10 mrg Exp $ */
/* S/KEY v1.1b (put.c)
*
@@ -12,7 +12,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: put.c,v 1.14 2019/10/03 17:08:26 christos Exp $");
+__RCSID("$NetBSD: put.c,v 1.15 2021/04/12 09:17:10 mrg Exp $");
#include <stdio.h>
#include <string.h>
@@ -2122,7 +2122,7 @@
{
char *word;
int i, p, v, l, low, high;
- char b[9];
+ char b[11];
char input[36];
char *last;
Home |
Main Index |
Thread Index |
Old Index