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 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"