-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MdeModulePkg: Add Boot%04x structure check function at BOpt_GetBootOp…
…tions According Bugzilla Bug 4792, GetEfiGlobalVariable2 try to get data from NVRAM, but NVRAM is easy to be modified. So wrong Boot%04x data may cause overflow. For example, if BootOptionSize smaller than 3 or StrSize can't get any NULL byte, it can cause overflow. Signed-off-by: zodf0055980 <[email protected]>
- Loading branch information
1 parent
b0f43dd
commit b75764e
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters