On 6/6/25 10:37, Peter Maydell wrote:
On Thu, 5 Jun 2025 at 20:35, Philippe Mathieu-Daudé <phi...@linaro.org> wrote:

Eradicate alloca() uses on system code, then enable
-Walloca to prevent new ones to creep back in.

Philippe Mathieu-Daudé (4):
   hw/gpio/pca9552: Avoid using g_newa()
   backends/tpmL Avoid using g_alloca()
   tests/unit/test-char: Avoid using g_alloca()
   buildsys: Prohibit alloca() use on system code

  meson.build                 | 4 ++++
  backends/tpm/tpm_emulator.c | 4 ++--
  hw/gpio/pca9552.c           | 2 +-
  tests/unit/test-char.c      | 3 +--
  4 files changed, 8 insertions(+), 5 deletions(-)

There is also a use of alloca() in target/ppc/kvm.c
in kvmppc_load_htab_chunk(), so I suspect that patch 4
here will break compilation on PPC hosts with KVM enabled.

Oops sorry I missed that one :/

Reply via email to