From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.41]) by mx.groups.io with SMTP id smtpd.web08.13290.1609766558086632060 for ; Mon, 04 Jan 2021 05:22:38 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=rMW3mU6C; spf=pass (domain: arm.com, ip: 40.107.22.41, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=51gfDPcPhKTQcdosh9wF2WB+hWwBMN0jwHfoUCPYgP0=; b=rMW3mU6CuszpBsvhTFNKJqBtLvh2SwFk2XVEAf8TBwowEexjUJ7qNd6w/adDqGIdrcdtXrDwDhD4NLRQrzOBxGw/7ki9Pn+VTEVVeoJASwB1he7jgd9LCyoz6Sz8cpKOn9sgTGiEtUmgY6TbI6Ck1hlqHUzMFndK+KAxKQ1U09U= Received: from DB6PR0402CA0011.eurprd04.prod.outlook.com (2603:10a6:4:91::21) by AM0PR08MB4179.eurprd08.prod.outlook.com (2603:10a6:208:12b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.19; Mon, 4 Jan 2021 13:22:34 +0000 Received: from DB5EUR03FT062.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:91:cafe::7b) by DB6PR0402CA0011.outlook.office365.com (2603:10a6:4:91::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20 via Frontend Transport; Mon, 4 Jan 2021 13:22:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT062.mail.protection.outlook.com (10.152.20.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.21 via Frontend Transport; Mon, 4 Jan 2021 13:22:34 +0000 Received: ("Tessian outbound eeda57fffe7b:v71"); Mon, 04 Jan 2021 13:22:34 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e552065fc0f4acde X-CR-MTA-TID: 64aa7808 Received: from c0ed096ba240.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6AC78BFA-80D0-4440-A818-A277FC85A412.1; Mon, 04 Jan 2021 13:22:29 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c0ed096ba240.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 04 Jan 2021 13:22:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H9gVy3ofYtUTaH0uV8AZPfwIBi/kpHdqqalbDZEVVm7w9ubi/1Dzfc2ef0IgR/dc6ejoj/2myryvW+S93Se6zc+RNjO/0GVc/ucbW2jY6scd+xpOC/vsoS8OLCbjEX0UNeztkEZTpSjvYUHKiKX5WwOmZqQZ+r9d6r6w+gKDGwaCg14uUxf16NBgE2TTK4ZoPoFXDPthkz0TXl7KfIupFEsTtXTH51CL5yWtKVRtKKEO0iuaW9/EoDhBeDL0Od3FglxsCLkaW/9+4w/wsBnmJOUI9dwzd4a2Qy85QriFBJULDyOQbF/I8ZFUJEG7hrdwZKv95LKpFPJ2iCRteLy/lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=51gfDPcPhKTQcdosh9wF2WB+hWwBMN0jwHfoUCPYgP0=; b=N77l61lpuZqY6K2y2zDDXa4G+4gwOBokbGC6dVnuIzTjIIzkKOfexjLj5fihDbWTgHlxBC6vpG9bMpnGQCGoJ/KzKINb4xx3PM2sJ10VrJ9HV56GITWpmxfMz8yuDE7bAHQFGa9In3tNRsB040VYuFTTRjhW15m4qpci7MujpAVFSwmAkv5SFvnqYthIXyxr9XPj3MEZaeQGp6ytc9RkgW6615fjhWeTWKPSL7vl28YMmJuGhofyswBxUljiNZxfdXTR3wmK36Yez2pGa1ZW2iyEKzOve2ocMUv9C9WO5+CryaE3E4SRrcBlLxc6vcXU/FgKWwiajiI7nUk+jLp/VQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=51gfDPcPhKTQcdosh9wF2WB+hWwBMN0jwHfoUCPYgP0=; b=rMW3mU6CuszpBsvhTFNKJqBtLvh2SwFk2XVEAf8TBwowEexjUJ7qNd6w/adDqGIdrcdtXrDwDhD4NLRQrzOBxGw/7ki9Pn+VTEVVeoJASwB1he7jgd9LCyoz6Sz8cpKOn9sgTGiEtUmgY6TbI6Ck1hlqHUzMFndK+KAxKQ1U09U= Received: from DB6P193CA0024.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::34) by PR3PR08MB5753.eurprd08.prod.outlook.com (2603:10a6:102:87::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20; Mon, 4 Jan 2021 13:22:27 +0000 Received: from DB5EUR03FT011.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:29:cafe::4b) by DB6P193CA0024.outlook.office365.com (2603:10a6:6:29::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.19 via Frontend Transport; Mon, 4 Jan 2021 13:22:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT011.mail.protection.outlook.com (10.152.20.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3721.21 via Frontend Transport; Mon, 4 Jan 2021 13:22:27 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Mon, 4 Jan 2021 13:22:21 +0000 Received: from E107187.Arm.com (10.57.38.43) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Mon, 4 Jan 2021 13:22:20 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [PATCH v3 08/26] StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCoreEntryPoint Date: Mon, 4 Jan 2021 13:21:55 +0000 Message-ID: <20210104132213.22376-9-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20210104132213.22376-1-sami.mujawar@arm.com> References: <20210104132213.22376-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d0647a27-0fe2-4599-305c-08d8b0b3cc5e X-MS-TrafficTypeDiagnostic: PR3PR08MB5753:|AM0PR08MB4179: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:510;OLM:510; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: KIwklh9M1sT31hesXicTnUuFEPXmPuwiBZcwuerigjXB9XArNrPiDP4M2s5nKAGtAm6Pq+kUpyZ6AGHdk7GVOjgmm3szSpYNQ8YmtekoOXUc/qTq4bgyUOHpvDDPkH5BAlCTr5otUOpydWoNF2WhM99SuiXW0FUH5easntBUhniTd5yoYRK/0iYCioZ2Hptf5FAaKjKDHKxOvVVtxqbSQJp095uDkoPckvI1NO3KN8bo1tqrduLEWVrOXsKEAF1uEF2nKRoF+JdJ25cABIrJ5LgIETxrMbsmmJc+FDojhc24/GefDkIEbPZOIf+u/KFxcuT2UZpci5JTjfLWVwRMUI6D7kUjwbtexe+KO4Pu8tXW0w9uFxxOy/AOpEixMutoei2GTvpGWX0/rPcqVLdpfnniGOOXZCZ0iZVBwhycxtKgRprcWKjFjQ6rRKT/eBvEii6h7YnRpfvES0DUR9LwMsxnIEEx7KZPz7uMc580MmIxWuDbsyDvSxEme+tEGhRKOvH327DU/SmSCNTHKCuRKk2x7BnXA3ywWpNDyVJtnNM= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(6029001)(4636009)(39860400002)(346002)(136003)(376002)(396003)(46966006)(2906002)(356005)(5660300002)(81166007)(1076003)(7696005)(86362001)(82740400003)(36756003)(83380400001)(70586007)(54906003)(316002)(6666004)(44832011)(26005)(47076005)(2616005)(8936002)(4326008)(8676002)(186003)(336012)(478600001)(70206006)(82310400003)(6916009)(426003);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5753 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT062.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 74b7f8d3-9e84-43e6-9d44-08d8b0b3c7ea X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: COeoMIITrw8X5mFeWs6XLM7IF8E6Er0ldiMY+ITtaWo7JZjoZasHwgyD8lHqgG9tx+Sp1tF8oWZzca3MhhbFxSwI1eSueF4u5Mwv7U3Y3Bw70g1lIgQzv0GrP34B5nsnTvk6HgIRADjyoatBI5cajwQxHHnHblztPGUdrkzVFxSaCE69r7ltsXO00IkPN0xR/9l9ZZfvRIbbj3fiWTlMcYMUDYvgV4TvgNoAj0zEFNAPeGTUvUkXRWTJzULen2/Ctg1bG8gHyTOblefuDcbBPq9RYwBJXWV+8rNe+dJIoRATlIgWxWx6Ke50w7dC6S20rQPO4wN0lektmcRrzZagHVkl2aTE9TPPqPfopZ7j4IqKEMM4rfhYRqyN/PF7WD13wwfKgLmcHv1bnYg/eNhYIeQsS+WUC+iVoqm851TbolD3nt19g7289C5YskEdk2mQCLZgnA7RgI0ETgp+fZDo/2kQ+8Rup7v5ir7ITXB7x22x+nZMRPznNi4EkL1RetLKl5eCIh70qu+5xI+XrOgjNPKQHsYz0tx8i5jGiuDmq8s= X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(6029001)(4636009)(136003)(396003)(376002)(346002)(39860400002)(46966006)(8676002)(8936002)(426003)(5660300002)(336012)(47076005)(186003)(82310400003)(26005)(6916009)(54906003)(2616005)(82740400003)(4326008)(1076003)(7696005)(2906002)(316002)(44832011)(478600001)(70206006)(70586007)(6666004)(36756003)(86362001)(81166007)(83380400001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2021 13:22:34.7204 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d0647a27-0fe2-4599-305c-08d8b0b3cc5e X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT062.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4179 Content-Type: text/plain Bugzilla: 3150 (https://bugzilla.tianocore.org/show_bug.cgi?id=3150) Fix ECC error "[5007] There should be no initialization of a variable as part of its declaration Variable." Signed-off-by: Sami Mujawar Acked-by: Jiewen Yao --- Notes: v3: - No code change. Added bugzilla ID and resending patch [SAMI] with v3 series. v2: - No code change. Resending patch with v2 series. [SAMI] StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c index bf9650d546291f6d449249d4f0577278a93adb24..0ab6edaeb7f05bc814281d0e928305804633e970 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c @@ -2,7 +2,7 @@ Locate, get and update PE/COFF permissions during Standalone MM Foundation Entry point on ARM platforms. -Copyright (c) 2017 - 2018, ARM Ltd. All rights reserved.
+Copyright (c) 2017 - 2020, Arm Ltd. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -121,9 +121,10 @@ LocateStandaloneMmCorePeCoffData ( IN OUT UINTN *TeDataSize ) { - EFI_FFS_FILE_HEADER *FileHeader = NULL; + EFI_FFS_FILE_HEADER *FileHeader; EFI_STATUS Status; + FileHeader = NULL; Status = FfsFindNextFile ( EFI_FV_FILETYPE_SECURITY_CORE, BfvAddress, -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'