[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/4] system: Forbid alloca()
From: |
Alex Bennée |
Subject: |
Re: [PATCH 0/4] system: Forbid alloca() |
Date: |
Fri, 06 Jun 2025 09:44:52 +0100 |
User-agent: |
mu4e 1.12.11; emacs 30.1 |
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
> Eradicate alloca() uses on system code, then enable
> -Walloca to prevent new ones to creep back in.
Should we also mention it in style.rst:
Use of the ``malloc/free/realloc/calloc/valloc/memalign/posix_memalign``
APIs is not allowed in the QEMU codebase. Instead of these routines,
>
> 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(-)
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- Re: [PATCH 2/4] backends/tpmL Avoid using g_alloca(), (continued)
- [RFC PATCH 4/4] buildsys: Prohibit alloca() use on system code, Philippe Mathieu-Daudé, 2025/06/05
- Re: [PATCH 0/4] system: Forbid alloca(), Pierrick Bouvier, 2025/06/05
- Re: [PATCH 0/4] system: Forbid alloca(), Peter Maydell, 2025/06/06
- Re: [PATCH 0/4] system: Forbid alloca(),
Alex Bennée <=
- Re: [PATCH 0/4] system: Forbid alloca(), Stefan Hajnoczi, 2025/06/09
- Re: [PATCH 0/4] system: Forbid alloca(), Philippe Mathieu-Daudé, 2025/06/10