audk/MdePkg
Dandan Bi 2f4a5a9f4c MdePkg/BasePeCoffLib: Add more check for relocation data
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1426

V2:
(1) Add NULL pointer check for the input parameters
(2) Add check for the "Adjust" value before applying fix ups.

In function PeCoffLoaderRelocateImageForRuntime, it doesn't
do much check when do relocation. For API level consideration,
it's not safe enough.
So this patch is to replace the same code logic with function
PeCoffLoaderImageAddress which will cover more validation.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-01-16 22:38:00 +08:00
..
Include MdePkg/Include: add MmServicesTableLib header file 2019-01-14 09:16:39 +01:00
Library MdePkg/BasePeCoffLib: Add more check for relocation data 2019-01-16 22:38:00 +08:00
MdePkg.dec MdePkg/Include: add MmServicesTableLib header file 2019-01-14 09:16:39 +01:00
MdePkg.dsc MdePkg: implement MmServicesTableLib based on traditional SMM 2019-01-14 09:20:36 +01:00
MdePkg.uni MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
MdePkgExtra.uni MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00