Enhance DXE dispatcher logic to check the duplicated FV image bases on FvHob2 and FvNameGuid per PI spec.

Signed-off-by: lgao4
Reviewed-by: rsun3

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12874 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2011-12-15 06:50:54 +00:00
parent 22675de35c
commit 2fc46f86f9
4 changed files with 161 additions and 27 deletions

View File

@@ -357,7 +357,7 @@ FvCheck (
//
// Check whether FvHeader is crossing the multi block range.
//
if (HeaderSize > BlockMap->Length) {
if (Index >= BlockMap->NumBlocks) {
BlockMap++;
continue;
} else if (HeaderSize > 0) {