]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: target_argv is placed on ts->bprm->argv and can't be freed()
authorFabio Erculiani <lxnay@sabayon.org>
Tue, 3 Jan 2012 09:38:35 +0000 (09:38 +0000)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 6 Apr 2012 15:49:57 +0000 (18:49 +0300)
commit84803b87a183bd71963584c3be5ca838d32c55df
tree9c5473aede26fc7a0fc28711f9705cc613fb1146
parente0e65bee16ae8515315d2bad02e021f3fb5dd236
linux-user: target_argv is placed on ts->bprm->argv and can't be freed()

TaskState contains linux_bprm struct which encapsulates argv among
other things.
argv might be used around the code and is expected to contain valid
data. Before this patch, ts->bprm->argv was NULL due to it being
freed right after loader_exec().

Signed-off-by: Fabio Erculiani <lxnay@sabayon.org>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/main.c