Re: [PATCH 3/4] tests/unit/test-char: Avoid using g_alloca()

2025-06-06 Thread Pierrick Bouvier
On 6/5/25 11:09 PM, Philippe Mathieu-Daudé wrote: On 5/6/25 22:53, Pierrick Bouvier wrote: On 6/5/25 12:35 PM, Philippe Mathieu-Daudé wrote: Do not use g_alloca(), simply allocate the CharBackend structure on the stack. Signed-off-by: Philippe Mathieu-Daudé ---   tests/unit/test-char.c | 3 +

Re: [PATCH 3/4] tests/unit/test-char: Avoid using g_alloca()

2025-06-05 Thread Philippe Mathieu-Daudé
On 5/6/25 22:53, Pierrick Bouvier wrote: On 6/5/25 12:35 PM, Philippe Mathieu-Daudé wrote: Do not use g_alloca(), simply allocate the CharBackend structure on the stack. Signed-off-by: Philippe Mathieu-Daudé ---   tests/unit/test-char.c | 3 +--   1 file changed, 1 insertion(+), 2 deletions(-)

Re: [PATCH 3/4] tests/unit/test-char: Avoid using g_alloca()

2025-06-05 Thread Pierrick Bouvier
On 6/5/25 12:35 PM, Philippe Mathieu-Daudé wrote: Do not use g_alloca(), simply allocate the CharBackend structure on the stack. Signed-off-by: Philippe Mathieu-Daudé --- tests/unit/test-char.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/test-char.c b/tes

[PATCH 3/4] tests/unit/test-char: Avoid using g_alloca()

2025-06-05 Thread Philippe Mathieu-Daudé
Do not use g_alloca(), simply allocate the CharBackend structure on the stack. Signed-off-by: Philippe Mathieu-Daudé --- tests/unit/test-char.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/test-char.c b/tests/unit/test-char.c index 60a843b79d9..f30a39f61ff 100