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>
/** @file\r
\r
- Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>\r
\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
EFI_ACPI_COMMON_HEADER *CurrentTable;\r
UINTN TableHandle;\r
UINT32 FvStatus;\r
- UINT32 Size;\r
+ UINTN Size;\r
EFI_EVENT Event;\r
EFI_ACPI_TABLE_VERSION TableVersion;\r
UINTN VarSize;\r
EFI_SECTION_RAW,\r
Instance,\r
(VOID **) &CurrentTable,\r
- (UINTN *) &Size,\r
+ &Size,\r
&FvStatus\r
);\r
\r