linux-user: allocate heap memory for execve arguments
Arguments passed to execve(2) call from user program could be large, allocating stack memory for them via alloca(3) call would lead to bad behaviour. Use 'g_new0' to allocate memory for such arguments. Reported-by: NJann Horn <jannh@google.com> Signed-off-by: NPrasad J Pandit <pjp@fedoraproject.org> Reviewed-by: NEric Blake <eblake@redhat.com> Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
Showing
想要评论请 注册 或 登录