diff options
author | Tom Rini <trini@konsulko.com> | 2020-08-24 17:28:18 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-24 17:28:18 -0400 |
commit | 3c0cec035e5b06b638fb52ccd7383bbd5bcede35 (patch) | |
tree | 5dfb658a5a4376ab257dfccdbc51f2e301fd0256 /lib/efi_loader/efi_bootmgr.c | |
parent | 1aa3966173fe92fa3c46638ee8eb8b8491f521d6 (diff) | |
parent | 2b3fbcb59f4174e455a6285eaddf1426ed3e76c5 (diff) |
Merge tag 'efi-2020-10-rc3-3' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-10-rc3 (3)
The following bug fixes are contained in this pull-request:
* ResetSystem() should no hang if not implemented.
* Device paths in Bootxxxx variables should be verified.
* Use ':' as separator for command setenv -e -i instead of ','.
* Correct comments for functions.
* Update UEFI documentation.
Diffstat (limited to 'lib/efi_loader/efi_bootmgr.c')
-rw-r--r-- | lib/efi_loader/efi_bootmgr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c index 1e06e609639..61dc72a23da 100644 --- a/lib/efi_loader/efi_bootmgr.c +++ b/lib/efi_loader/efi_bootmgr.c @@ -105,10 +105,8 @@ efi_status_t efi_deserialize_load_option(struct efi_load_option *lo, u8 *data, if (*size < len) return EFI_INVALID_PARAMETER; lo->file_path = (struct efi_device_path *)data; - /* - * TODO: validate device path. There should be an end node within - * the indicated file_path_length. - */ + if (efi_dp_check_length(lo->file_path, len) < 0) + return EFI_INVALID_PARAMETER; data += len; *size -= len; |