mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
boot/efi/stub.c: fix Dell LoadOptions
On Dell machines LoadOptions is filled with: 01 00 00 00 <name of BIOS Boot Loader Entry> ... <unknown bytes> So, in case of meaningfull LoadOptions, better check if the first char is a printable character.
This commit is contained in:
parent
81375d8026
commit
15720d0340
@ -68,7 +68,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) {
|
||||
cmdline_len = szs[0];
|
||||
|
||||
/* if we are not in secure boot mode, accept a custom command line and replace the built-in one */
|
||||
if (!secure && loaded_image->LoadOptionsSize > 0 && *(CHAR16 *)loaded_image->LoadOptions != 0) {
|
||||
if (!secure && loaded_image->LoadOptionsSize > 0 && *(CHAR16 *)loaded_image->LoadOptions > 0x1F) {
|
||||
CHAR16 *options;
|
||||
CHAR8 *line;
|
||||
UINTN i;
|
||||
|
Loading…
Reference in New Issue
Block a user