From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com [40.107.14.57]) by mx.groups.io with SMTP id smtpd.web09.473.1607539673231562194 for ; Wed, 09 Dec 2020 10:47:53 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=+D4Begxn; spf=pass (domain: arm.com, ip: 40.107.14.57, 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=cAoqDL9rF/RKDlQd/QDzvdxH3/FH4QeeNrxU/IPLhqc=; b=+D4Begxn3zMCXJL3jcV2/r7RvZMJfdd0+WRB9WSgnBiGZNNOxKF0xN0Y+Ynw6lwWiDeGilLY2Aa63pxSOLnr7Q1debngQ1cfwy4PS3zPvZCVrR9AmIUfwZq51YCXJvVzU0YHK/le0QqnTiphZYieEvfGtWOrfcO35VM7Ugyg5yk= Received: from AS8PR04CA0105.eurprd04.prod.outlook.com (2603:10a6:20b:31e::20) by AM9PR08MB6129.eurprd08.prod.outlook.com (2603:10a6:20b:284::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.21; Wed, 9 Dec 2020 18:47:50 +0000 Received: from VE1EUR03FT026.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:31e:cafe::4a) by AS8PR04CA0105.outlook.office365.com (2603:10a6:20b:31e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:50 +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 VE1EUR03FT026.mail.protection.outlook.com (10.152.18.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:50 +0000 Received: ("Tessian outbound fc5cc0046d61:v71"); Wed, 09 Dec 2020 18:47:49 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8accebe385a3352e X-CR-MTA-TID: 64aa7808 Received: from 3a3893437a9a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D9004617-286C-47AC-A61D-4FC4D716B490.1; Wed, 09 Dec 2020 18:47:34 +0000 Received: from EUR02-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3a3893437a9a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 09 Dec 2020 18:47:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HlooCmfoaXHqGevFr5OUiJQhW86skD1kG2A1G5V9QPcZo0HXLL7wtEw2YK26cYrwyL0GlLvxbXpfynYl+juCG3HJcXIhazvnUAdJFKgh6AH25zuA2/NKGJUro/UeAQexfmvd5omvUrDhedVXu3CJArhlCzS5j1j05PvbxckSkZz7gIuZJRYflzZc/YGX21obTv+fE90wSzO5l5z5pXlMLe9iRxKmlDWeVwkf/kNe+4c/wsoY5ML1yZ3w0z3fpmTtH7sOLM5zj5qX8C3klDiZLwze3LtsIpoYDeiXivIWxFXI2sadJV/6pB9ACcMqdAWX9wy9dFS8mMFyGWFXzbQRnw== 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=cAoqDL9rF/RKDlQd/QDzvdxH3/FH4QeeNrxU/IPLhqc=; b=JHzIsDWJJVQLIXHVaU9s+yNXyZFbHhMVwdH9ysWkBL0zsMJqCAUUEPAHg8lxSvvbbahQfOrYPolxMTqV403TdjPzpxLPIDSGUqde9iqkr66AShKqPXVq2WjFEeAm6mZ1aiOGdzbRkIkyavK3pCr0qUz95LIwHLMDLF8e7vifqDqFdqpJn7/J29eCtfk+b9PGQBcOMP0wWXDTZraOm3Aax7MZADlXKySC+ty9GkXCoCv/P3aYAisIMBHn9OLv/h3Od1NCbruKo1ChnBy8cygeGfDMNoEScc2bQGTAfDsABg82le/quwTxmd27CSUI3xoFUbDXyIg0eO8mKjy2xs+SNA== 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=cAoqDL9rF/RKDlQd/QDzvdxH3/FH4QeeNrxU/IPLhqc=; b=+D4Begxn3zMCXJL3jcV2/r7RvZMJfdd0+WRB9WSgnBiGZNNOxKF0xN0Y+Ynw6lwWiDeGilLY2Aa63pxSOLnr7Q1debngQ1cfwy4PS3zPvZCVrR9AmIUfwZq51YCXJvVzU0YHK/le0QqnTiphZYieEvfGtWOrfcO35VM7Ugyg5yk= Received: from AM0PR04CA0002.eurprd04.prod.outlook.com (2603:10a6:208:122::15) by AM4PR08MB2882.eurprd08.prod.outlook.com (2603:10a6:205:c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.21; Wed, 9 Dec 2020 18:47:32 +0000 Received: from AM5EUR03FT047.eop-EUR03.prod.protection.outlook.com (2603:10a6:208:122:cafe::5e) by AM0PR04CA0002.outlook.office365.com (2603:10a6:208:122::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:32 +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 AM5EUR03FT047.mail.protection.outlook.com (10.152.16.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:32 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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; Wed, 9 Dec 2020 18:47:16 +0000 Received: from E107187.Arm.com (10.57.26.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Wed, 9 Dec 2020 18:47:16 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [PATCH v1 08/25] StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCoreEntryPoint Date: Wed, 9 Dec 2020 18:46:53 +0000 Message-ID: <20201209184710.20912-9-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20201209184710.20912-1-sami.mujawar@arm.com> References: <20201209184710.20912-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: e876d0ad-97b6-4336-b44a-08d89c72edbf X-MS-TrafficTypeDiagnostic: AM4PR08MB2882:|AM9PR08MB6129: 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: H2SdCzrkP4LF+2DhxDCqTCVlhxoUTsgKrRDJTX0YYft78k9h18fq4nNTkvrJNwvqN7wFwpD8fDX+ypN8RZcnYNfTC8jjgYMFv+0HniABQvb0ooaBBSCxFfiK5/pGP5x3wmOwqntXhQ+TaXobvwtH2FuJioRippjXl6LWm0o1o9eNT7ZtNV/P8QjGym1YVeomLzOG24jpsiBVaOvCr5ZVriJ1BJtq7WRN6z6C/JnJ5u3OBgiLPItdAyFhLATTWgiNQezjFh9sb0m5eFdmkMu+7Ed17fpyLhMdVdxFvtoMeiRz6TQ2ArZWujQdeztJG0ZU5V9XRwUGcl/3Vsbz9/Yqo+NmaVe9rWhaonN3zhXCzMXELRJijcUjZ7Y9gvBmXjpE1wO5AK03s/s2dpHV6wiV7w== 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)(136003)(376002)(346002)(46966005)(508600001)(70206006)(426003)(81166007)(6666004)(356005)(47076004)(86362001)(6916009)(54906003)(36756003)(4326008)(5660300002)(70586007)(7696005)(2616005)(8676002)(1076003)(8936002)(2906002)(336012)(44832011)(82310400003)(26005)(186003)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2882 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: d0f4635b-0e86-42bf-259d-08d89c72e34e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ijgAIvjA2HGwHxOB6FMxa0scmebWujolxh5YoGBqRtDJCe6jG0U6QYHz5NibwpMiIrxo/1mnRB68jpVVXRgzV7aCSdoJc6SJQ0Th4MkoDZzTO+nYljzrOk7P8iqvH69b/V3vEux7doeKg/+nuOh67YpvB9kZSRVdVVc+f1CuZr/bMrngOUQjxRHQfYvpJml5QehhD+DIMpJCE9Rf3j1WdRY/Yg3oxKo23J3RHdpzCyYt8+o6RhBH0hC+ADeex9hrGbgJoPMyJLOBI/dUimMNU+H/fDxzvpZbpeBpAxeoLPDYPs90CxCp/UlbCtVulrjmYTP0C7kGwZgVwQqwEtmJFG4SGllCvPYmv7/ShrSGdJFf9LpssWhbHH1R7+N/+o++ynTHkcj3KXBN1DFbpNonDQ== 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)(346002)(376002)(46966005)(36756003)(2616005)(426003)(81166007)(26005)(70586007)(82310400003)(83380400001)(6666004)(70206006)(7696005)(508600001)(47076004)(54906003)(186003)(5660300002)(8676002)(336012)(4326008)(44832011)(6916009)(8936002)(86362001)(2906002)(1076003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2020 18:47:50.0634 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e876d0ad-97b6-4336-b44a-08d89c72edbf 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: VE1EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6129 Content-Type: text/plain Fix ECC error "[5007] There should be no initialization of a variable as part of its declaration Variable." Signed-off-by: Sami Mujawar --- 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)'