diff options
author | INDIA\sachinganesh <sachinganesh@ami.com> | 2025-01-13 16:15:54 +0530 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-01-26 17:15:56 +0000 |
commit | aedcaa3df8a246ef859c234ed5c243471c5be698 (patch) | |
tree | 7fddc6c8556b2fbea031dad8d1d88ae4f4cc397b /BaseTools/Source/Python/Workspace/DecBuildData.py | |
parent | b3bfb8f22d43bd9577df85bec20e75eb2f659990 (diff) | |
download | edk2-aedcaa3df8a246ef859c234ed5c243471c5be698.tar.gz edk2-aedcaa3df8a246ef859c234ed5c243471c5be698.tar.bz2 edk2-aedcaa3df8a246ef859c234ed5c243471c5be698.zip |
MdePkg: Fix overflow issue in PeCoffLoaderRelocateImageForRuntime
RelocDir->Size is a UINT32 value, and RelocDir->VirtualAddress is
also a UINT32 value. The current code in
PeCoffLoaderRelocateImageForRuntime does not check for overflow when
adding RelocDir->Size to RelocDir->VirtualAddress. This patch uses
SafeIntLib to ensure that the addition does not overflow.
Signed-off-by: Sachin Ganesh <sachinganesh@ami.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DecBuildData.py')
0 files changed, 0 insertions, 0 deletions