diff options
author | kib <kib@FreeBSD.org> | 2011-06-16 22:00:59 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-06-16 22:00:59 +0000 |
commit | 6e0462eab287b96bdd47d4b78142eca26fa56a69 (patch) | |
tree | 166527d2bc6220979f16bb3ec70cacf689878623 | |
parent | f13e1b44c6510a2598a800d5726c08f9ffba7b35 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/kern/imgact_aout.c | 2 |
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 |