]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: copy GUID in InstallProtocolInterface()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 9 Mar 2022 18:56:23 +0000 (19:56 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 12 Mar 2022 11:27:07 +0000 (12:27 +0100)
commit8052025c86ecc77da15d036433e4586f4e367e3a
tree79a836954752d499b8006dbe07e81257b3eb9c60
parent9a119ec39e4a4282743394590d7a47c6f018070a
efi_loader: copy GUID in InstallProtocolInterface()

InstallProtocolInterface() is called with a pointer to the protocol GUID.
There is not guarantee that the memory used by the caller for the protocol
GUID stays allocated. To play it safe the GUID should be copied to U-Boot's
internal structures.

Reported-by: Joerie de Gram <j.de.gram@gmail.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi_loader.h
lib/efi_loader/efi_boottime.c
lib/efi_loader/efi_image_loader.c