Files
Ruiyu Ni 7ecf635971 MdeModulePkg/BDS: Fix a buffer overflow bug
KeyOption points to a buffer holding the content of Key####.
So its size is smaller than EFI_BOOT_MANAGER_KEY_OPTION.
Old code to assign value to KeyOption->OptionNumber modifies
the memory outside of the KeyOption buffer.

The patch fixes this bug.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <[email protected]>
Cc: Steven Shi <[email protected]>
Reviewed-by: Star Zeng <[email protected]>
Reviewed-by: Jeff Fan <[email protected]>
(cherry picked from commit 7320b8ed18)
2017-05-22 09:51:18 +08:00
..