]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: efi_dp_check_length()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 23 Aug 2020 08:49:46 +0000 (10:49 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 24 Aug 2020 14:37:53 +0000 (16:37 +0200)
commit26b4359eedd182cf3fd9b3ae53b45afe0f973ec9
tree6f1fdb4a9cbb0dfd88065fe672dfaace03119ab4
parentbcb82cb006736a22bf2ed6442fda698131790396
efi_loader: efi_dp_check_length()

We need to check that device paths provided via UEFI variables are not
malformed.

Provide function efi_dp_check_length() to check if a device path has an
end node within a given number of bytes.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_loader.h
lib/efi_loader/efi_device_path.c