mu_basecore
mu_basecore copied to clipboard
Fix buffer overflow when merging guard pages in MergeMemoryMap
Description
Checks that the next map entry is valid before dereferencing to merge the guard pages. If the final entry is at the end of a page with no valid page following it, then this can cause an access violation.
How This Was Tested
Tested on Q35 platform boot.
Integration Instructions
N/A