summaryrefslogtreecommitdiffstats
path: root/Vlv2TbltDevicePkg/AcpiPlatform
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2019-05-08 14:38:47 -0700
committerMichael D Kinney <michael.d.kinney@intel.com>2019-05-09 19:58:05 -0700
commitf635a42e14f4b839cb015ae7216055038519a16e (patch)
tree3caa0026761b37bb27184721b65e47745bec4853 /Vlv2TbltDevicePkg/AcpiPlatform
parent3eac7496bef1636b3745ff015581012534a47721 (diff)
downloadedk2-f635a42e14f4b839cb015ae7216055038519a16e.tar.gz
edk2-f635a42e14f4b839cb015ae7216055038519a16e.tar.bz2
edk2-f635a42e14f4b839cb015ae7216055038519a16e.zip
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>
Diffstat (limited to 'Vlv2TbltDevicePkg/AcpiPlatform')
-rw-r--r--Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
index 0bd375391e..5c03f66edb 100644
--- a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
+++ b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c
@@ -1,6 +1,6 @@
/** @file
- Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -778,7 +778,7 @@ AcpiPlatformEntryPoint (
EFI_ACPI_COMMON_HEADER *CurrentTable;
UINTN TableHandle;
UINT32 FvStatus;
- UINT32 Size;
+ UINTN Size;
EFI_EVENT Event;
EFI_ACPI_TABLE_VERSION TableVersion;
UINTN VarSize;
@@ -1223,7 +1223,7 @@ AcpiPlatformEntryPoint (
EFI_SECTION_RAW,
Instance,
(VOID **) &CurrentTable,
- (UINTN *) &Size,
+ &Size,
&FvStatus
);