summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_aout.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-06-16 22:00:59 +0000
committerkib <kib@FreeBSD.org>2011-06-16 22:00:59 +0000
commit6e0462eab287b96bdd47d4b78142eca26fa56a69 (patch)
tree166527d2bc6220979f16bb3ec70cacf689878623 /sys/kern/imgact_aout.c
parentf13e1b44c6510a2598a800d5726c08f9ffba7b35 (diff)
downloadFreeBSD-src-6e0462eab287b96bdd47d4b78142eca26fa56a69.zip
FreeBSD-src-6e0462eab287b96bdd47d4b78142eca26fa56a69.tar.gz
Do not trash the argv[0] pointer for an a.out process on amd64.
Found with the binary provided by joerg.
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r--sys/kern/imgact_aout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index 333dca8..3908da7 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -152,7 +152,7 @@ aout_fixup(register_t **stack_base, struct image_params *imgp)
{
*(char **)stack_base -= sizeof(uint32_t);
- return (suword(*stack_base, imgp->args->argc));
+ return (suword32(*stack_base, imgp->args->argc));
}
static int
OpenPOWER on IntegriCloud