The ALLOCA(3) man-page mentions its "use is discouraged". Replace few calls by equivalent GLib malloc().
Since v2: - linux-user calls converted - bsd-user returns ENOMEM (Peter) - built on PPC+KVM host (David) - removed tpm mutex cleanup (Christophe) - included Alex gdbstub patch - added R-b tags Since v1: - Converted more uses (alsaaudio, tpm, pca9552) - Reworked gdbstub (Alex) - Simplified PPC/KVM (Greg) Alex Bennée (1): gdbstub: Replace GdbCmdContext with plain g_array() Philippe Mathieu-Daudé (16): bsd-user/syscall: Replace alloca() by g_try_new() linux-user/elfload: Replace alloca() by g_try_malloc() linux-user/syscall: Replace alloca() by g_try_new() linux-user/syscall: Replace alloca() by g_try_malloc() linux-user: Replace alloca() by g_try_new() in ppoll() syscall linux-user: Replace alloca() by g_try_malloc() in setsockopt() syscall linux-user: Replace alloca() by g_try_malloc() in various socket syscall linux-user/syscall: Move code around in do_sendrecvmsg_locked() linux-user/syscall: Replace alloca() by GLib alloc() in sendrecvmsg audio/alsaaudio: Replace ALSA alloca() by malloc() equivalent backends/tpm: Replace g_alloca() by g_malloc() gdbstub: Constify GdbCmdParseEntry hw/misc/pca9552: Replace g_newa() by g_new() target/ppc/kvm: Replace alloca() by g_malloc() configure: Prohibit alloca() by using -Walloca CPPFLAG configure: libSLiRP buildsys kludge configure | 8 + audio/alsaaudio.c | 11 +- backends/tpm/tpm_emulator.c | 3 +- bsd-user/syscall.c | 7 +- gdbstub.c | 322 +++++++++++++++++------------------- hw/misc/pca9552.c | 2 +- linux-user/elfload.c | 14 +- linux-user/syscall.c | 137 ++++++++++----- target/ppc/kvm.c | 4 +- 9 files changed, 277 insertions(+), 231 deletions(-) -- 2.26.3