Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/dev Fix buffer overrun (off by one). PR port-...
details: https://anonhg.NetBSD.org/src/rev/ecf3f0a608dc
branches: trunk
changeset: 779944:ecf3f0a608dc
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jun 30 12:42:37 2012 +0000
description:
Fix buffer overrun (off by one). PR port-atari/42717
diffstat:
sys/arch/atari/dev/clock.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 904ebaf9b650 -r ecf3f0a608dc sys/arch/atari/dev/clock.c
--- a/sys/arch/atari/dev/clock.c Sat Jun 30 11:01:41 2012 +0000
+++ b/sys/arch/atari/dev/clock.c Sat Jun 30 12:42:37 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.53 2011/06/05 06:33:42 tsutsui Exp $ */
+/* $NetBSD: clock.c,v 1.54 2012/06/30 12:42:37 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.53 2011/06/05 06:33:42 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.54 2012/06/30 12:42:37 tsutsui Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -505,7 +505,7 @@
struct clock_softc *sc;
mc_todregs clkregs;
int s, length;
- char buffer[16];
+ char buffer[16 + 1];
sc = device_lookup_private(&clock_cd, minor(dev));
Home |
Main Index |
Thread Index |
Old Index