summary refs log tree commit diff stats
path: root/hw/intc
diff options
context:
space:
mode:
authorPrasad J Pandit <pjp@fedoraproject.org>2017-03-07 12:51:47 +0530
committerRiku Voipio <riku.voipio@linaro.org>2017-05-29 14:56:08 +0300
commitb936cb50aacf3cccf5d2363095c6547eb709583a (patch)
tree1ed3f3324999739613e0608b8c85ebb5ae61516b /hw/intc
parentc4e316cfb5e3f4b58d5d6fb6cb6c2279a5c3229a (diff)
downloadfocaccia-qemu-b936cb50aacf3cccf5d2363095c6547eb709583a.tar.gz
focaccia-qemu-b936cb50aacf3cccf5d2363095c6547eb709583a.zip
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: Jann Horn <jannh@google.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'hw/intc')
0 files changed, 0 insertions, 0 deletions