Hi Heinrich On Tue, 8 Jul 2025 at 14:48, Heinrich Schuchardt <[email protected]> wrote: > > The UEFI 2.11 specification, chapter 23.1.3 requires > EFI_FIRMWARE_MANAGEMENT_PROTOCOL.GetImageInfo() to return > EFI_INVALID_PARAMETER if *ImageInfoSize is not too small > and ImageInfo is NULL. > > Fixes: f27c20148511 ("efi_loader: add firmware management protocol for FIT > image") > Signed-off-by: Heinrich Schuchardt <[email protected]> > ---
Reviewed-by: Ilias Apalodimas <[email protected]> That being said, we need to double check the FIT capsule users. I think we can probably remove it in the future. Are you aware of use cases that FIT supports, which we don't support from the RAW variant? Thanks /Ilias > lib/efi_loader/efi_firmware.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/efi_loader/efi_firmware.c b/lib/efi_loader/efi_firmware.c > index 75501e21557..216df83de67 100644 > --- a/lib/efi_loader/efi_firmware.c > +++ b/lib/efi_loader/efi_firmware.c > @@ -332,6 +332,8 @@ static efi_status_t efi_fill_image_desc_array( > > return EFI_BUFFER_TOO_SMALL; > } > + if (!image_info) > + return EFI_INVALID_PARAMETER; > *image_info_size = total_size; > > ret = efi_gen_capsule_guids(); > -- > 2.48.1 >

