Zero out on-stack 'marks' array before first use.

This is needed so the MARK_DATA index is properly filled in.
This commit is contained in:
jakllsch 2013-12-30 21:45:51 +00:00
parent d562d4d1b6
commit ba3004d138

View File

@ -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 loadaddr, int boothowto, int floppy,
howto = boothowto;
memset(marks, 0, sizeof(marks));
if (common_load_kernel(file, &basemem, &extmem, loadaddr, floppy, marks))
goto out;