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

Philippe Mathieu-Daudé posted 5 patches 2 years, 11 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210505170055.1415360-1-philmd@redhat.com
There is a newer version of this series
bsd-user/syscall.c |  3 +--
gdbstub.c          | 24 +++++++++++++-----------
target/ppc/kvm.c   | 10 +++++-----
3 files changed, 19 insertions(+), 18 deletions(-)
[PATCH 0/5] misc: Replace alloca() by g_malloc()
Posted by Philippe Mathieu-Daudé 2 years, 11 months ago
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