mbox series

[0/5] misc: Replace alloca() by g_malloc()

Message ID 20210505170055.1415360-1-philmd@redhat.com (mailing list archive)
Headers show
Series misc: Replace alloca() by g_malloc() | expand

Message

Philippe Mathieu-Daudé May 5, 2021, 5 p.m. UTC
The ALLOCA(3) man-page mentions its "use is discouraged".
Replace few calls by a g_malloc()/g_new() ones.

Last call site is linux-user/.

Philippe Mathieu-Daudé (5):
  bsd-user/syscall: Replace alloca() by g_new()
  gdbstub: Constify GdbCmdParseEntry
  gdbstub: Use fixed-size array in GdbCmdParseEntry instead of pointer
  gdbstub: Replace alloca() by g_new()
  target/ppc/kvm: Replace alloca() by g_malloc()

 bsd-user/syscall.c |  3 +--
 gdbstub.c          | 24 +++++++++++++-----------
 target/ppc/kvm.c   | 10 +++++-----
 3 files changed, 19 insertions(+), 18 deletions(-)