]> git.baikalelectronics.ru Git - uboot.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)
commite969b6c8a88bd5b10642a2ba8782dccdef755fee
treec945592c15b0fc67394ea7c97803549201446f72
parente1f7549f8acbfc5d85b2616a2291648fbb793246
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