On 03/07/2017 01:21 AM, P J P wrote:
> From: Prasad J Pandit <[email protected]>
> 
> 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 <[email protected]>
> Signed-off-by: Prasad J Pandit <[email protected]>
> ---
>  linux-user/syscall.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Reviewed-by: Eric Blake <[email protected]>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to