Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 497ac7b6d7f9750f48f137db244931a5728b1968
      
https://github.com/tianocore/edk2/commit/497ac7b6d7f9750f48f137db244931a5728b1968
  Author: Guomin Jiang <guomin.ji...@intel.com>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf64Lib.c

  Log Message:
  -----------
  UefiPayloadPkg/PayloadLoaderPeim: Use INT64 as input parameter

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3818

It will have some potential issue when memory larger than 2G because
the high memory address will be fill with 0xFFFFFFFF when do the
operation of INTN + INT64 but it is 32 bit normal data in fact.

Should use same data type INT64 + INT64.

V3:
1. Use INT64 as input parameter because all date type is 64 bit
V2:
1. Force the data type to UINTN to avoid high dword be filled with
0xFFFFFFFF
2. Keep INTN because the offset may postive or negative.

Reviewed-by: Guo Dong <guo.d...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>
Signed-off-by: Guomin Jiang <guomin.ji...@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to