Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/stat avoid a potential buffer truncation.
details: https://anonhg.NetBSD.org/src/rev/93462c779238
branches: trunk
changeset: 448501:93462c779238
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Feb 04 08:07:33 2019 +0000
description:
avoid a potential buffer truncation.
diffstat:
usr.bin/stat/stat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 61c0c1f638eb -r 93462c779238 usr.bin/stat/stat.c
--- a/usr.bin/stat/stat.c Mon Feb 04 08:00:27 2019 +0000
+++ b/usr.bin/stat/stat.c Mon Feb 04 08:07:33 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stat.c,v 1.43 2017/09/21 22:53:19 kre Exp $ */
+/* $NetBSD: stat.c,v 1.44 2019/02/04 08:07:33 mrg Exp $ */
/*
* Copyright (c) 2002-2011 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: stat.c,v 1.43 2017/09/21 22:53:19 kre Exp $");
+__RCSID("$NetBSD: stat.c,v 1.44 2019/02/04 08:07:33 mrg Exp $");
#endif
#if ! HAVE_NBTOOL_CONFIG_H
@@ -646,7 +646,7 @@
uint64_t data;
char *stmp, lfmt[24], tmp[20];
const char *sdata;
- char smode[12], sid[12], path[PATH_MAX + 4], visbuf[PATH_MAX * 4 + 4];
+ char smode[12], sid[13], path[PATH_MAX + 4], visbuf[PATH_MAX * 4 + 4];
struct passwd *pw;
struct group *gr;
time_t secs;
Home |
Main Index |
Thread Index |
Old Index