From nobody Sun Feb 8 04:17:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+40248+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40248+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1557376278; cv=none; d=zoho.com; s=zohoarc; b=E0iZDFQCie1KWj8IErAESM7z9aO9sFNHCWDRyW5TOOEGCyP/KItA4tc+CLHLOgpwf8Jk5c/pYFOcAj8fSrOHJbYtnhFmG0fQNEdZTTUfc1ewVbZy4f2Q32LuLukPw9Hxw4J2gnrijVZiSpMnMwaL+SiH7xIpRFD/AkgVEqbtZrQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557376278; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=kLYr7603tm82LrVWSmQBdUQ0rN645nt+YUxNLJW3XrM=; b=Qr5OxtBHaek8VWuN7rT7xAz7vR+OukCr+EF5vQvecQLVJlTNztxyOP5b19crJrm1bRva3yjPPIwGs+qk+n9/E/xCMtAqhkxfDJls4s0Ju9sL3vDSWeDkgjlXNaPjttdNV7C5VD7g6ks983Ch8Ioo+qmdHEWlyaNjjgGqY86tRNQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40248+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1557376278199719.5251233407648; Wed, 8 May 2019 21:31:18 -0700 (PDT) Return-Path: X-Received: from mga12.intel.com (mga12.intel.com []) by groups.io with SMTP; Wed, 08 May 2019 21:31:17 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 May 2019 21:31:16 -0700 X-ExtLoop1: 1 X-Received: from unknown (HELO mdkinney-MOBL2.amr.corp.intel.com) ([10.241.98.74]) by orsmga004.jf.intel.com with ESMTP; 08 May 2019 21:31:16 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Zailiang Sun , Yi Qian Subject: [edk2-devel] [Patch 02/16] Vlv2TbltDevicePkg/AcpiPlatform: Change Size type to UINTN Date: Wed, 8 May 2019 21:30:57 -0700 Message-Id: <20190509043111.15272-3-michael.d.kinney@intel.com> In-Reply-To: <20190509043111.15272-1-michael.d.kinney@intel.com> References: <20190509043111.15272-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1557376277; bh=KnZNtdKN2PvOyCuAoIStx9027VcVCOIXJ1hXVSKdyX0=; h=Cc:Date:From:Reply-To:Subject:To; b=bsIwR4GIC11OaiOSvAGov5on8e8vf2DQaDfvxOLpy7rkEjnVCgej79+G4E9XJ7InjwF l0BzsL8EnhbFG6KHizbZWTwDQGt+qg2VwsVrAcRZfKv1dKTOX+Pur++Nrbiinqi8sAWsP c3z44F2cXRbNLkPKkOEtts3mwXiLP0adrHQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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 Cc: Yi Qian Signed-off-by: Michael D Kinney Reviewed-by: Zailiang Sun --- Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c b/Vlv2TbltDevice= Pkg/AcpiPlatform/AcpiPlatform.c index 0bd375391e..5c03f66edb 100644 --- a/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c +++ b/Vlv2TbltDevicePkg/AcpiPlatform/AcpiPlatform.c @@ -1,6 +1,6 @@ /** @file =20 - Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
+ Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.
=20 =20 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 ); =20 --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#40248): https://edk2.groups.io/g/devel/message/40248 Mute This Topic: https://groups.io/mt/31551770/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-