All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] misc: Replace alloca() by g_malloc()
@ 2021-05-05 17:00 Philippe Mathieu-Daudé
  2021-05-05 17:00 ` [PATCH 1/5] bsd-user/syscall: Replace alloca() by g_new() Philippe Mathieu-Daudé
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-05-05 17:00 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kyle Evans, Greg Kurz, Alex Bennée, Paolo Bonzini,
	Philippe Mathieu-Daudé,
	Warner Losh, David Gibson

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




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-05-06 16:27 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05 17:00 [PATCH 0/5] misc: Replace alloca() by g_malloc() Philippe Mathieu-Daudé
2021-05-05 17:00 ` [PATCH 1/5] bsd-user/syscall: Replace alloca() by g_new() Philippe Mathieu-Daudé
2021-05-05 17:00 ` [PATCH 2/5] gdbstub: Constify GdbCmdParseEntry Philippe Mathieu-Daudé
2021-05-06 11:50   ` Alex Bennée
2021-05-05 17:00 ` [PATCH 3/5] gdbstub: Use fixed-size array in GdbCmdParseEntry instead of pointer Philippe Mathieu-Daudé
2021-05-06 12:01   ` Alex Bennée
2021-05-06 12:39     ` Philippe Mathieu-Daudé
2021-05-06 15:15       ` Alex Bennée
2021-05-05 17:00 ` [PATCH 4/5] gdbstub: Replace alloca() by g_new() Philippe Mathieu-Daudé
2021-05-06 16:07   ` [ALT PATCH] gdbstub: Replace GdbCmdContext with plain g_array() Alex Bennée
2021-05-05 17:00 ` [PATCH 5/5] target/ppc/kvm: Replace alloca() by g_malloc() Philippe Mathieu-Daudé
2021-05-05 17:00   ` Philippe Mathieu-Daudé
2021-05-06  2:18   ` David Gibson
2021-05-06  2:18     ` David Gibson
2021-05-06  8:41   ` Greg Kurz
2021-05-06  8:41     ` Greg Kurz
2021-05-06 13:09     ` Philippe Mathieu-Daudé
2021-05-06 13:09       ` Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.