Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst another buffer overflow.
details: https://anonhg.NetBSD.org/src/rev/321415d5e1e9
branches: trunk
changeset: 350516:321415d5e1e9
user: christos <christos%NetBSD.org@localhost>
date: Fri Jan 13 05:49:27 2017 +0000
description:
another buffer overflow.
diffstat:
usr.sbin/sysinst/disks.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 936ddecfc440 -r 321415d5e1e9 usr.sbin/sysinst/disks.c
--- a/usr.sbin/sysinst/disks.c Fri Jan 13 05:45:46 2017 +0000
+++ b/usr.sbin/sysinst/disks.c Fri Jan 13 05:49:27 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disks.c,v 1.12 2016/01/26 14:05:29 martin Exp $ */
+/* $NetBSD: disks.c,v 1.13 2017/01/13 05:49:27 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -1450,7 +1450,7 @@
strcmp(tt, "part") &&
strcmp(tt, "-")
)
- strncat(p_type, tt, STRSIZE);
+ strlcat(p_type, tt, STRSIZE);
i++;
}
if (p_start == 0 || p_size == 0)
Home |
Main Index |
Thread Index |
Old Index