|
From: | Richard Henderson |
Subject: | Re: [PATCH 12/23] hw/i386/multiboot: Avoid dynamic stack allocation |
Date: | Fri, 7 May 2021 09:27:46 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
On 5/5/21 2:10 PM, Philippe Mathieu-Daudé wrote:
Use autofree heap allocation instead of variable-length array on the stack. Replace the snprintf() call by g_strdup_printf(). Signed-off-by: Philippe Mathieu-Daudé<philmd@redhat.com> --- hw/i386/multiboot.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |