]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/FwVol/FwVol.c
Enhance DXE dispatcher logic to check the duplicated FV image bases on FvHob2 and...
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / FwVol / FwVol.c
index 1e1cbae368f1817553a56d3e409213ab6f0656c8..07cbbb94df56f33ff5b7b861b987e03dcb8a3cc2 100644 (file)
@@ -357,7 +357,7 @@ FvCheck (
       //\r
       // Check whether FvHeader is crossing the multi block range.\r
       //\r
-      if (HeaderSize > BlockMap->Length) {\r
+      if (Index >= BlockMap->NumBlocks) {\r
         BlockMap++;\r
         continue;\r
       } else if (HeaderSize > 0) {\r