mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 14:00:40 -10:00
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)