diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2011-06-16 22:00:59 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2011-06-16 22:00:59 +0000 |
commit | 508462ed1bb1e205eb3ba34f978127498501f308 (patch) | |
tree | 166527d2bc6220979f16bb3ec70cacf689878623 /sys/kern/imgact_aout.c | |
parent | 5a888c066fb3568d8d662ba358c2d6c5a1bd0e99 (diff) | |
download | src-508462ed1bb1e205eb3ba34f978127498501f308.tar.gz src-508462ed1bb1e205eb3ba34f978127498501f308.zip |
Do not trash the argv[0] pointer for an a.out process on amd64.
Found with the binary provided by joerg.
Notes
Notes:
svn path=/head/; revision=223165
Diffstat (limited to 'sys/kern/imgact_aout.c')
-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 333dca8b0b6e..3908da7bd245 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 |