]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: file size checks
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 7 Sep 2019 21:28:04 +0000 (23:28 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 9 Sep 2019 13:21:08 +0000 (15:21 +0200)
commit9f085601b0314e5335100f785e47b55990ed1af5
treebee6af33540d5e8dbc5b6e75903a911d487198f7
parent95f9947ac3c98175be580310caee4904ec01df8f
efi_loader: file size checks

The file size has to be determined in multiple places. Factor out a common
function.

If on entry into EFI_FILE_PROTOCOL.Read() the current position is beyond
the end of the file, return EFI_DEVICE_ERROR.

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