]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: fix device path to text protocol
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 29 Jan 2022 18:01:07 +0000 (19:01 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 5 Feb 2022 19:20:01 +0000 (20:20 +0100)
commit344f26a7664f0a3f1a4b302e08a408171bdc3ece
treec945592c15b0fc67394ea7c97803549201446f72
parentc672dd770ee0d9874086543c20a9088124514051
efi_loader: fix device path to text protocol

The printing of a file path node must properly handle:

* odd length of the device path node
* UTF-16 character only partially contained in device path node
* buffer overflow due to very long file path

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_device_path_to_text.c