Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/lib Zero out on-stack 'marks' array befo...
details: https://anonhg.NetBSD.org/src/rev/4c6f29f5a699
branches: trunk
changeset: 792333:4c6f29f5a699
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Dec 30 21:45:51 2013 +0000
description:
Zero out on-stack 'marks' array before first use.
This is needed so the MARK_DATA index is properly filled in.
diffstat:
sys/arch/i386/stand/lib/exec.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 9a04f8e3ef5c -r 4c6f29f5a699 sys/arch/i386/stand/lib/exec.c
--- a/sys/arch/i386/stand/lib/exec.c Mon Dec 30 19:08:55 2013 +0000
+++ b/sys/arch/i386/stand/lib/exec.c Mon Dec 30 21:45:51 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.c,v 1.55 2013/11/27 18:29:45 jakllsch Exp $ */
+/* $NetBSD: exec.c,v 1.56 2013/12/30 21:45:51 jakllsch Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -362,6 +362,8 @@
howto = boothowto;
+ memset(marks, 0, sizeof(marks));
+
if (common_load_kernel(file, &basemem, &extmem, loadaddr, floppy, marks))
goto out;
Home |
Main Index |
Thread Index |
Old Index