]> git.proxmox.com Git - mirror_edk2.git/commit
Vlv2TbltDevicePkg/AcpiPlatform: Change Size type to UINTN
authorMichael D Kinney <michael.d.kinney@intel.com>
Wed, 8 May 2019 21:38:47 +0000 (14:38 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Fri, 10 May 2019 02:58:05 +0000 (19:58 -0700)
commitf635a42e14f4b839cb015ae7216055038519a16e
tree3caa0026761b37bb27184721b65e47745bec4853
parent3eac7496bef1636b3745ff015581012534a47721
Vlv2TbltDevicePkg/AcpiPlatform: Change Size type to UINTN

Change the type of the local variable Size in the function
AcpiPlatformEntryPoint() from UINT32 to UINTN.  This local
variable is passed into the function ReadSection() that returns
a value of type UINTN.  Using type UINT32 can potentially
corrupt an adjacent local on the stack.

Cc: Zailiang Sun <zailiang.sun@intel.com>
Cc: Yi Qian <yi.qian@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
Reviewed-by: Yi Qian <yi.qian@intel.com>
Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c