svn commit: r223165 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Thu Jun 16 22:00:59 UTC 2011


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


More information about the svn-src-head mailing list