We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From MdeModulePkg\Library\UefiBootManagerLib\BmBoot.c
UINTN BmFindBootOptionInVariable ( IN EFI_BOOT_MANAGER_LOAD_OPTION *OptionToFind ) { EFI_STATUS Status; EFI_BOOT_MANAGER_LOAD_OPTION BootOption; UINTN OptionNumber; CHAR16 OptionName[BM_OPTION_NAME_LEN]; EFI_BOOT_MANAGER_LOAD_OPTION *BootOptions; UINTN BootOptionCount; UINTN Index; OptionNumber = LoadOptionNumberUnassigned; // // Try to match the variable exactly if the option number is assigned // if (OptionToFind->OptionNumber != LoadOptionNumberUnassigned) { UnicodeSPrint ( OptionName, sizeof (OptionName), L"%s%04x", mBmLoadOptionName[OptionToFind->OptionType], OptionToFind->OptionNumber );
OptionToFind should be checked for being NULL before being dereferenced in the function.
OptionToFind
NULL
Found in #182
The text was updated successfully, but these errors were encountered:
Fixed in referenced merged PRs
Sorry, something went wrong.
No branches or pull requests
From MdeModulePkg\Library\UefiBootManagerLib\BmBoot.c
OptionToFind
should be checked for beingNULL
before being dereferenced in the function.Found in #182
The text was updated successfully, but these errors were encountered: