Re: [Qemu-devel] [PATCH v3] linux-user: allocate heap memory for execve arguments

2017-03-07 Thread Eric Blake
On 03/07/2017 01:21 AM, P J P wrote: > From: Prasad J Pandit > > 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: Jann H

[Qemu-devel] [PATCH v3] linux-user: allocate heap memory for execve arguments

2017-03-06 Thread P J P
From: Prasad J Pandit 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: Jann Horn Signed-off-by: Prasad J Pandit --- linux-user/