Do not trash the argv[0] pointer for an a.out process on amd64.
Found with the binary provided by joerg.
This commit is contained in:
parent
5a888c066f
commit
508462ed1b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user