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)
commit5cad4a30932a31f1646510d35af7e9e36f71708a
tree6f1fdb4a9cbb0dfd88065fe672dfaace03119ab4
parented0b10722c880d82e5da2a357122f5ae0e53d4db
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