public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v1] mkeficapsule: fix efi_firmware_management_capsule_header data type
@ 2023-06-16  8:28 Stefan Herbrechtsmeier
  2023-06-17  0:33 ` AKASHI Takahiro
  2023-07-09  8:31 ` Heinrich Schuchardt
  0 siblings, 2 replies; 9+ messages in thread
From: Stefan Herbrechtsmeier @ 2023-06-16  8:28 UTC (permalink / raw)
  To: u-boot
  Cc: Malte Schmidt, Malte Schmidt, Stefan Herbrechtsmeier,
	Etienne Carriere, Ilias Apalodimas, Masahisa Kojima, Sughosh Ganu

From: Malte Schmidt <malte.schmidt@weidmueller.com>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/eficapsule.h b/tools/eficapsule.h
index 753fb73313..2099a2e9b8 100644
--- a/tools/eficapsule.h
+++ b/tools/eficapsule.h
@@ -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 */
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-07-10  6:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-16  8:28 [PATCH v1] mkeficapsule: fix efi_firmware_management_capsule_header data type Stefan Herbrechtsmeier
2023-06-17  0:33 ` AKASHI Takahiro
2023-06-19  9:45   ` Schmidt, Malte
2023-06-19  9:53     ` AKASHI Takahiro
2023-06-19 10:37       ` Schmidt, Malte
2023-06-19 10:45         ` AKASHI Takahiro
2023-07-09  8:31 ` Heinrich Schuchardt
2023-07-10  6:26   ` AKASHI Takahiro
2023-07-10  6:41     ` Heinrich Schuchardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox