Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MdePkg: Fix overflow issue in BasePeCoffLib
The RelocDir->Size is a UINT32 value, and RelocDir->VirtualAddress is also a UINT32 value. The current code does not check for overflow when adding RelocDir->Size to RelocDir->VirtualAddress. This patch adds a check to ensure that the addition does not overflow. Signed-off-by: Doug Flick <[email protected]> Authored-by: sriraamx gobichettipalayam <[email protected]>
- Loading branch information