Re: [PATCH 0/4] system: Forbid alloca()

2025-06-10 Thread Philippe Mathieu-Daudé
On 5/6/25 21:35, Philippe Mathieu-Daudé 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_al

Re: [PATCH 0/4] system: Forbid alloca()

2025-06-09 Thread Stefan Hajnoczi
On Thu, Jun 05, 2025 at 09:35:36PM +0200, Philippe Mathieu-Daudé 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() > test

Re: [PATCH 0/4] system: Forbid alloca()

2025-06-06 Thread Alex Bennée
Philippe Mathieu-Daudé 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. In

Re: [PATCH 0/4] system: Forbid alloca()

2025-06-06 Thread Philippe Mathieu-Daudé
On 6/6/25 10:37, Peter Maydell wrote: On Thu, 5 Jun 2025 at 20:35, Philippe Mathieu-Daudé 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

Re: [PATCH 0/4] system: Forbid alloca()

2025-06-06 Thread Peter Maydell
On Thu, 5 Jun 2025 at 20:35, Philippe Mathieu-Daudé 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

Re: [PATCH 0/4] system: Forbid alloca()

2025-06-05 Thread Pierrick Bouvier
On 6/5/25 12:35 PM, Philippe Mathieu-Daudé 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

[PATCH 0/4] system: Forbid alloca()

2025-06-05 Thread Philippe Mathieu-Daudé
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 c