]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg UefiBootManagerLib: Do not assume perf entry count has no change
authorStar Zeng <star.zeng@intel.com>
Wed, 30 Sep 2015 04:29:50 +0000 (04:29 +0000)
committerlzeng14 <lzeng14@Edk2>
Wed, 30 Sep 2015 04:29:50 +0000 (04:29 +0000)
commit2f931dda52dc6e20643c0842acf18c9f0b5a0097
tree976690e58376d7a26d4d25ebf7588effc4e86fd1
parent9feefde0cb4fb4edb8b3e5a0168e756d81f46e79
MdeModulePkg UefiBootManagerLib: Do not assume perf entry count has no change

Current implementation assumes the performance entry count has no change from
multiple GetPerformanceMeasurement() while loops, it may cause the allocated buffer
for PerfEntriesAsDxeHandle at the first loop to be overflowed if the following loop has
the count changed.

This patch is also to sync the change at
commit R17851 "IntelFrameworkModulePkg GenericBdsLib: Resolve array size mismatch".

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18561 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c