]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c
MdeModulePkg/DxeIplPeim: Relocate operation of PageMapLevel5Entry++
authorZhang, Shenglei <shenglei.zhang@intel.com>
Mon, 12 Aug 2019 06:24:44 +0000 (14:24 +0800)
committerHao A Wu <hao.a.wu@intel.com>
Wed, 14 Aug 2019 01:04:04 +0000 (09:04 +0800)
commit46f8a6891606746ca8b1e684ac379ce271306dc0
tree4221e5b0b5b73a8bb1db7bea3359e81f421ef90b
parent073f2cede820782e37e31bd6664aa53b79bbade4
MdeModulePkg/DxeIplPeim: Relocate operation of PageMapLevel5Entry++

This commit will fix a GCC 4.8.5 build failure introduced by commit
b3527dedc3951f061c5a73cb4fb2b0f95f47e08b.

PageMapLevel5Entry may be uninitialized in original code, which means
uninitialized pointer will be modified at some circumstance.
So relocate the operation of PageMapLevel5Entry++ in order to make sure
the pointer could be modified only when it is initialized.

Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c