Reviewed-by: Liming Gao
> -邮件原件-
> 发件人: devel@edk2.groups.io 代表 Gerd
> Hoffmann
> 发送时间: 2022年1月21日 20:59
> 收件人: devel@edk2.groups.io
> 抄送: Dandan Bi ; Pawel Polawski
> ; Jian J Wang ; Liming Gao
> ; Gerd Hoffmann
> 主题: [edk2-devel] [PATCH 1/1] Mde
When setting mVirtualMap to NULL also set mVirtualMapMaxIndex to 0.
Without that RuntimeDriverConvertPointer() will go search the ZeroPage
for EFI_MEMORY_DESCRIPTOR entries.
In case mVirtualMapMaxIndex happens to be small small enough that'll go
unnoticed, the search will not find anything and EFI