]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/PiSmmCpuDxeSmm: Fix buffer overflow issue.
authorEric Dong <eric.dong@intel.com>
Mon, 23 Dec 2019 06:37:28 +0000 (14:37 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 24 Dec 2019 03:59:14 +0000 (03:59 +0000)
commit123b720eeb371e0a31eb727bcf59255b584e355f
tree3a0613305de38d7a901cde2aaaa87cff78ecd72d
parenta457823f27e5410d00c1f47b5f841b5a88a926e4
UefiCpuPkg/PiSmmCpuDxeSmm: Fix buffer overflow issue.

The size for the array of mSmmMpSyncData->CpuData[] is 0 ~
mMaxNumberOfCpus -1. But current code may use
mSmmMpSyncData->CpuData[mMaxNumberOfCpus].

This patch fixed this issue.

Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c