summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPrasad J Pandit2017-03-07 08:21:47 +0100
committerRiku Voipio2017-05-29 13:56:08 +0200
commitb936cb50aacf3cccf5d2363095c6547eb709583a (patch)
tree1ed3f3324999739613e0608b8c85ebb5ae61516b /include
parentlinux-user: fix inotify (diff)
downloadqemu-b936cb50aacf3cccf5d2363095c6547eb709583a.tar.gz
qemu-b936cb50aacf3cccf5d2363095c6547eb709583a.tar.xz
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 'include')
0 files changed, 0 insertions, 0 deletions