]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: fix efi_convert_device_path_to_text()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 26 Jul 2022 05:45:18 +0000 (07:45 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 Aug 2022 09:09:49 +0000 (11:09 +0200)
commit4160e76a3b1a2106a2ef2e28d055530ab1b955e7
tree7b4ae83c3488f628013ce5698357cf077c36b55a
parent565940126454a224b3a1a0167c128fc9f793f6af
efi_loader: fix efi_convert_device_path_to_text()

Ensure that the string we convert to UTF-16 is NUL terminated even
if the device path only contains end nodes.

Fixes: 3dc2c11e2c24 ("efi_loader: multi part device paths to text")
Addresses-Coverity: 350434 ("Uninitialized scalar variable")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_device_path_to_text.c