Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2011 22:00:59 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r223165 - head/sys/kern
Message-ID:  <201106162200.p5GM0xfi047575@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Jun 16 22:00:59 2011
New Revision: 223165
URL: http://svn.freebsd.org/changeset/base/223165

Log:
  Do not trash the argv[0] pointer for an a.out process on amd64.
  
  Found with the binary provided by joerg.

Modified:
  head/sys/kern/imgact_aout.c

Modified: head/sys/kern/imgact_aout.c
==============================================================================
--- head/sys/kern/imgact_aout.c	Thu Jun 16 21:59:16 2011	(r223164)
+++ head/sys/kern/imgact_aout.c	Thu Jun 16 22:00:59 2011	(r223165)
@@ -152,7 +152,7 @@ aout_fixup(register_t **stack_base, stru
 {
 
 	*(char **)stack_base -= sizeof(uint32_t);
-	return (suword(*stack_base, imgp->args->argc));
+	return (suword32(*stack_base, imgp->args->argc));
 }
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106162200.p5GM0xfi047575>