Module Name:    src
Committed By:   jakllsch
Date:           Mon Dec 30 21:45:51 UTC 2013

Modified Files:
        src/sys/arch/i386/stand/lib: exec.c

Log Message:
Zero out on-stack 'marks' array before first use.
This is needed so the MARK_DATA index is properly filled in.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/i386/stand/lib/exec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/i386/stand/lib/exec.c
diff -u src/sys/arch/i386/stand/lib/exec.c:1.55 src/sys/arch/i386/stand/lib/exec.c:1.56
--- src/sys/arch/i386/stand/lib/exec.c:1.55	Wed Nov 27 18:29:45 2013
+++ src/sys/arch/i386/stand/lib/exec.c	Mon Dec 30 21:45:51 2013
@@ -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 @@ exec_netbsd(const char *file, physaddr_t
 
 	howto = boothowto;
 
+	memset(marks, 0, sizeof(marks));
+
 	if (common_load_kernel(file, &basemem, &extmem, loadaddr, floppy, marks))
 		goto out;
 

Reply via email to