]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Core: Fix incorrect memory map generated in a rare case
authorJian J Wang <jian.j.wang@intel.com>
Sat, 16 Dec 2017 09:22:35 +0000 (17:22 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 19 Dec 2017 07:19:46 +0000 (15:19 +0800)
commit3d817fd11af6a4981978f6c0d5648ce470aa92b5
tree5e5ffa65fea02c5992aaf2918a19fcd02da2cc22
parente9dfa1b519cddfb7ceb93706d527ac25f36606c2
MdeModulePkg/Core: Fix incorrect memory map generated in a rare case

The root cause is that mImagePropertiesPrivateData.CodeSegmentCountMax was
not updated with correct value due to the fact that SortImageRecord() called
before might change the content of current ImageRecord. This will in turn
cause incorrect memory map entries generated in SplitTable().

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c
MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c