From nobody Fri May 3 17:05:00 2024 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+51116+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+51116+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1574377382; cv=none; d=zoho.com; s=zohoarc; b=fuiRSFK3vMqrVihODl4LK6yUDmtcN4PeyypBYyMTx2WNJzHgBrNEkEI9lPtP/J3u0jlasFGDtsoTpJwXrZACz4dZJiohzSnAYvCSgCU8OzKqsFNfE+lEtLsRvFpMeS71NWi+bnBG8WtnBnmRRUMei6Nc6z6NcknHHEcjCGKbg0I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1574377382; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=cxUd2rTXi1+wr0sD/zs3TU6cIXMzLPv2rsVfhm+bfdg=; b=TY9ugYN34d1vSlbHkR4gsnw2IusCocQ1D0BZsksrMNvBsgYGb4LKn5mJD+mBnDY8uVj0p4WQJcXHs2aJzo3FAWHiHLDO8v8evu/gNYaS4AE6pBrVHyT4UlJ6/5XGDIdjjCF2DXrnMosYCPlQMplgYRk5IhWMWNYJijWYuBQdNyA= 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+51116+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 1574377382606216.77302267287348; Thu, 21 Nov 2019 15:03:02 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id WnvyYY1788612xtdBndP5I8G; Thu, 21 Nov 2019 15:03:01 -0800 X-Received: from mga07.intel.com (mga07.intel.com []) by mx.groups.io with SMTP id smtpd.web09.31818.1574377377201927981 for ; Thu, 21 Nov 2019 15:03:01 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2019 15:03:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,227,1571727600"; d="scan'208";a="219259595" X-Received: from makuback-desk1.amr.corp.intel.com ([10.7.159.162]) by orsmga002.jf.intel.com with ESMTP; 21 Nov 2019 15:03:00 -0800 From: "Kubacki, Michael A" To: devel@edk2.groups.io Cc: Liming Gao , Michael D Kinney , Jian J Wang , Hao A Wu Subject: [edk2-devel] [PATCH V2 1/2] MdeModulePkg/Variable: Initialize local variable "Variable" Date: Thu, 21 Nov 2019 15:02:35 -0800 Message-Id: <20191121230236.29668-2-michael.a.kubacki@intel.com> In-Reply-To: <20191121230236.29668-1-michael.a.kubacki@intel.com> References: <20191121230236.29668-1-michael.a.kubacki@intel.com> 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.a.kubacki@intel.com X-Gm-Message-State: hqwhSJXlwgavJ39ilJpP6tkVx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1574377381; bh=Gr86b9u0spWDgKnOQkQ/W2LSxh/yocrmhlDpdgfY5b8=; h=Cc:Date:From:Reply-To:Subject:To; b=Vcg8SqYxJKqXVemLRL6F6Wgg2K495DlIdipm1soi0Vzum9zTtnuobkvJMd9BqEp45s0 gM7fBk6fL043InF92UE6YAZXn2SMdl3dCEYw6w8EZkfNrPPFOBzBPqSQRu2/sXPNfOCg6 OWist9PBwvHfa5H1LfXxD7C+0CtfD16kvEg= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2364 Fixes a new build warning in VS2012 introduced in f8ff4cca7c. This patch initializes the local variable "Variable" in VariableServiceGetNextVariableInternal (). This ensures the pointers in the structure are initialized in the case no variable stores exist in the list of variable stores. Cc: Liming Gao Cc: Michael D Kinney Cc: Jian J Wang Cc: Hao A Wu Signed-off-by: Michael Kubacki Reviewed-by: Liming Gao Reviewed-by: Philippe Mathieu-Daude Reviewed-by: Jian J Wang --- MdeModulePkg/Universal/Variable/RuntimeDxe/VariableParsing.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableParsing.c b= /MdeModulePkg/Universal/Variable/RuntimeDxe/VariableParsing.c index d458f1c608..f6d187543d 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableParsing.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableParsing.c @@ -551,6 +551,8 @@ VariableServiceGetNextVariableInternal ( return EFI_INVALID_PARAMETER; } =20 + ZeroMem (&Variable, sizeof (Variable)); + // Check if the variable exists in the given variable store list for (StoreType =3D (VARIABLE_STORE_TYPE) 0; StoreType < VariableStoreTyp= eMax; StoreType++) { if (VariableStoreList[StoreType] =3D=3D NULL) { --=20 2.16.2.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 (#51116): https://edk2.groups.io/g/devel/message/51116 Mute This Topic: https://groups.io/mt/61215201/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- From nobody Fri May 3 17:05:00 2024 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+51117+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+51117+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1574377383; cv=none; d=zoho.com; s=zohoarc; b=PzmnddTMSZJVoITEQBVkM3d2FZQiiOkEHfNHfTCWeab9F+0xg+bglAPzTlWFZ7xFVVJAnPsRsYtNcoNDjvD289hl9CUKua+3hGJRevoDTZE4qcoQLv6cdaUMRkBJ9s+wC77WmasDHsGsbs8VkNXv5b9+2fBGJdeA4x2mBrx9khE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1574377383; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=+Ph2y3sQItDSLZrlWvRn7UtvgBXTgtpRdTwTyfIyi5I=; b=DVOu8dWzwqUoPdU1HC3x/+d9aVlLDDP1y6Kjodbf0al6LUa3TOKk7GKDLLtpdK/MU3Azckt3J35M6OmqhrUQw4u/6XkoAjKs1J8DsjgbHWkr1GFgT3JOrsFRswGYvuts9WzLVpGq+U1OhSgsi8PH+bEYHj/g59vMSw3JxbkCIx0= 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+51117+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 1574377383510919.4208187175221; Thu, 21 Nov 2019 15:03:03 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id hr5bYY1788612xjwra9VFfOu; Thu, 21 Nov 2019 15:03:02 -0800 X-Received: from mga07.intel.com (mga07.intel.com []) by mx.groups.io with SMTP id smtpd.web09.31818.1574377377201927981 for ; Thu, 21 Nov 2019 15:03:02 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2019 15:03:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,227,1571727600"; d="scan'208";a="219259604" X-Received: from makuback-desk1.amr.corp.intel.com ([10.7.159.162]) by orsmga002.jf.intel.com with ESMTP; 21 Nov 2019 15:03:01 -0800 From: "Kubacki, Michael A" To: devel@edk2.groups.io Cc: Liming Gao , Michael D Kinney , Jian J Wang , Hao A Wu Subject: [edk2-devel] [PATCH V2 2/2] MdeModulePkg/Variable: Initialize local variable "RtPtrTrack" Date: Thu, 21 Nov 2019 15:02:36 -0800 Message-Id: <20191121230236.29668-3-michael.a.kubacki@intel.com> In-Reply-To: <20191121230236.29668-1-michael.a.kubacki@intel.com> References: <20191121230236.29668-1-michael.a.kubacki@intel.com> 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.a.kubacki@intel.com X-Gm-Message-State: kJSxqJ29KF7sEygLDZv4JPSSx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1574377382; bh=VdaKFxDp0KWvg7k2+shaZ2lzIphlRlezCv9DUZDVv0w=; h=Cc:Date:From:Reply-To:Subject:To; b=KYWMgeLAV23dPKj6NYaB45ovYmkZWGkJTt1uQaBW9QwCY2OiwlcWi4GPimGz3j4EVED o4xzTV/O7D2LXsJmWkvdYv7I//L2h3DiAZWQqbA1W1tW4EKjcloa98sJkgbmJpyfbNOWV pH00vJVp2W85CjpGk5FW8ezrVMASW0LAZJc= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2364 Fixes a new build warning in VS2012 introduced in f8ff4cca7c. This patch initializes the local variable "RtPtrTrack" in FindVariableInRuntimeCache (). This ensures the pointers in the structure are initialized in the case no variable stores exist in the list of variable stores. Cc: Liming Gao Cc: Michael D Kinney Cc: Jian J Wang Cc: Hao A Wu Signed-off-by: Michael Kubacki Reviewed-by: Liming Gao Reviewed-by: Jian J Wang Reviewed-by: Philippe Mathieu-Daude --- MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeD= xe.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c index d525998ae3..2cf0ed32ae 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c @@ -590,6 +590,8 @@ FindVariableInRuntimeCache ( return EFI_INVALID_PARAMETER; } =20 + ZeroMem (&RtPtrTrack, sizeof (RtPtrTrack)); + // // The UEFI specification restricts Runtime Services callers from invoki= ng the same or certain other Runtime Service // functions prior to completion and return from a previous Runtime Serv= ice call. These restrictions prevent --=20 2.16.2.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 (#51117): https://edk2.groups.io/g/devel/message/51117 Mute This Topic: https://groups.io/mt/61215213/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-