mkeficapsule: fix efi_firmware_management_capsule_header data type
authorMalte Schmidt <malte.schmidt@weidmueller.com>
Fri, 16 Jun 2023 08:28:05 +0000 (10:28 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 9 Jul 2023 08:32:28 +0000 (10:32 +0200)
The data type of item_offset_list shall be UINT64 according to the UEFI [1]
specifications.

In include/efi_api.h the correct data type is used. The bug was probably
never noticed because of little endianness.

[1] https://uefi.org/specs/UEFI/2.10/index.html

Signed-off-by: Malte Schmidt <malte.schmidt@weidmueller.com>
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
tools/eficapsule.h

index 072a4b5..6ffed6c 100644 (file)
@@ -63,7 +63,7 @@ struct efi_firmware_management_capsule_header {
        uint32_t version;
        uint16_t embedded_driver_count;
        uint16_t payload_item_count;
-       uint32_t item_offset_list[];
+       uint64_t item_offset_list[];
 } __packed;
 
 /* image_capsule_support */