audk/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe
Heyi Guo 710d9e69fa MdeModulePkg/NonDiscoverable: fix memory override bug
For PciIoPciRead interface, memory prior to Buffer would be written
with zeros if Offset was larger than sizeof (Dev->ConfigSpace), which
would cause serious system exception.

So we add a pre-check branch to avoid memory override.

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2017-11-08 12:52:04 +08:00
..
ComponentName.c MdeModulePkg/NonDiscoverablePciDeviceDxe: Add comments for functions 2016-12-19 09:19:54 +08:00
NonDiscoverablePciDeviceDxe.c MdeModulePkg/NonDiscoverablePciDevice: Make variable definition follow rule 2016-12-19 09:20:01 +08:00
NonDiscoverablePciDeviceDxe.inf MdeModulePkg/NonDiscoverablePciDeviceDxe: Add comments for functions 2016-12-19 09:19:54 +08:00
NonDiscoverablePciDeviceIo.c MdeModulePkg/NonDiscoverable: fix memory override bug 2017-11-08 12:52:04 +08:00
NonDiscoverablePciDeviceIo.h MdeModulePkg/NonDiscoverablePciDeviceDxe: Add comments for functions 2016-12-19 09:19:54 +08:00