diff options
author | Prasad J Pandit <pjp@fedoraproject.org> | 2017-03-07 12:51:47 +0530 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2017-05-29 14:56:08 +0300 |
commit | b936cb50aacf3cccf5d2363095c6547eb709583a (patch) | |
tree | 1ed3f3324999739613e0608b8c85ebb5ae61516b /roms/config.vga-stdvga | |
parent | c4e316cfb5e3f4b58d5d6fb6cb6c2279a5c3229a (diff) |
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 'roms/config.vga-stdvga')
0 files changed, 0 insertions, 0 deletions