Re: [PATCH v2 2/4] hw/uefi: fix error handling in uefi_vars_json_save

2025-03-26 Thread Philippe Mathieu-Daudé
On 19/3/25 12:01, Gerd Hoffmann wrote: Catch lseek errors. Return on errors. Use autoptr for the GString to simplify cleanup. Signed-off-by: Gerd Hoffmann --- hw/uefi/var-service-json.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) Reviewed-by: Philippe Mathieu-Da

[PATCH v2 2/4] hw/uefi: fix error handling in uefi_vars_json_save

2025-03-19 Thread Gerd Hoffmann
Catch lseek errors. Return on errors. Use autoptr for the GString to simplify cleanup. Signed-off-by: Gerd Hoffmann --- hw/uefi/var-service-json.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hw/uefi/var-service-json.c b/hw/uefi/var-service-json.c index 7