qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Philippe Mathieu-Daudé
Subject: [PATCH 0/5] misc: Replace alloca() by g_malloc()
Date: Wed, 5 May 2021 19:00:50 +0200

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(-)

-- 
2.26.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]