edk2
edk2 copied to clipboard
MdeModulePkg: Add Boot#### structure check
trafficstars
Add Boot#### structure check to prevent Boot%04x variable error.
Description
- [ ] Breaking change?
- Breaking change - Does this PR cause a break in build or boot behavior?
- Examples: Does it add a new library class or move a module to a different repo.
- [x] Impacts security?
- Security - Does this PR have a direct security impact?
- Examples: Crypto algorithm change or buffer overflow fix.
- [ ] Includes tests?
- Tests - Does this PR include any explicit test code?
- Examples: Unit tests or integration tests.
How This Was Tested
OVMF build
Integration Instructions
According bugzilla issue 4792, it should check Boot%04x variable in BOpt_GetBootOptions to prevent error sturcture.