]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/uefi: fix error handling in uefi_vars_json_load
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 19 Mar 2025 14:11:55 +0000 (15:11 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 21 Mar 2025 11:00:38 +0000 (12:00 +0100)
commit761d0b5fb7e0f0a6a36c5fc449c6feda2b78af79
tree762c87bf7eebc08f5535cf3cea8e4044f6a736d2
parentae24cf139ba681f8ce3dc809f3f1119b16c73043
hw/uefi: fix error handling in uefi_vars_json_load

Catch lseek errors.  Return on read errors.

Fixes: CID 1593154
Fixes: CID 1593157
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-ID: <20250319141159.1461621-4-kraxel@redhat.com>
hw/uefi/var-service-json.c