diff options
author | Dandan Bi <dandan.bi@intel.com> | 2019-01-03 15:31:23 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-01-16 22:38:00 +0800 |
commit | 2f4a5a9f4c17ed88aaa3114d1e161e42cb80a9bf (patch) | |
tree | d29e4f1cde071e9e131df57c47f5a7ed0d2e2eb9 /BaseTools/Source/Python/Common/ToolDefClassObject.py | |
parent | 9e90fb097c1526b6fb96082cd3438c2835e54cc5 (diff) | |
download | edk2-2f4a5a9f4c17ed88aaa3114d1e161e42cb80a9bf.tar.gz edk2-2f4a5a9f4c17ed88aaa3114d1e161e42cb80a9bf.tar.bz2 edk2-2f4a5a9f4c17ed88aaa3114d1e161e42cb80a9bf.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/Common/ToolDefClassObject.py')
0 files changed, 0 insertions, 0 deletions