diff options
| author | Michael D Kinney <michael.d.kinney@intel.com> | 2026-09-13 23:51:39 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-09-29 05:10:55 +0300 |
| commit | ea0ca89f7bd9b3f25481d6ab87f17808b0fd64fa (patch) | |
| tree | a8f2972f36fa4e84c92f542ff0797da0997defd0 /MdeModulePkg/Library/PiDxeS3BootScriptLib | |
| parent | e9875b1e49fec34d0d5015d9591f6350a32db92f (diff) | |
| download | edk2-ea0ca89f7bd9b3f25481d6ab87f17808b0fd64fa.tar.xz | |
MdeModulePkg/NvmExpressDxe: Use BaseLib for 64-bit multiplication
Commit bf0dc7d78701 ("MdeModulePkg: Fix comparison with wider widths")
changed PrpListIndex and PrpEntryIndex from UINTN to UINT64. In
NvmeCreatePrpList(), performing arithmetic with `PrpListIndex * EFI_PAGE_SIZE`
and pointer indexing with `(UINT64 *)PrpListBase + PrpEntryIndex` results
in 64-bit multiplication.
Fix this issue by using MultU64x32() for 64-bit page offset calculations
and casting PrpEntryIndex to UINTN for pointer indexing.
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib')
0 files changed, 0 insertions, 0 deletions
