From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (NAM04-DM6-obe.outbound.protection.outlook.com [40.107.102.64]) by mx.groups.io with SMTP id smtpd.web10.161.1666456450128272093 for ; Sat, 22 Oct 2022 09:34:10 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=C0hBLq1r; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.102.64, mailfrom: paul.grimes@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n+runmneOQYM/xGgYxq00iQGGmUL/IW4dfynpvKsiENlKOyGwQZwCRCXGyQ+83gpko8GejH7KoItgWSwpEl3ryY2dqxroRzDM5YhitanVss4JieZu7c823MJ64TN6Y7kAzcR2KbWKPgB/D1tEC4zxgkmWEORx/UyaUzsJ4V/ppjsCKqthHLAaBMQX6XIDAuYFh1PvSXxZ1XcBqasnVzqJ8Tb1J4/8Hy0hh/wJuXUQVVvxmhMLY6aQXb+00lYSOI6QtbuAXMvY24y2HKgT7dIMBKzytuW8OfPuJIMaH6RR+3oYpyZsvF5blUv2x2wqqX+9L4t1GVFXb1OVPBhOgNt4Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=e3PinIc82dAHlPEuM1U4LyElGVw7ZZVzvNtc8RDW7P8=; b=hya+9BHdLffkSwPJiZMYfwr8/vFZAY7C2jOnU6ZhpL/GbPaNn7ylUN+F0j7a4lVPjqFHqTk27EO61JYFbqNYwwOsSDTllpZPGredvImGCJHmW++kS6jdRiTpBJSCKrxlTONjZ8FRgnCgSBP7Bw79vfauqkeSScJXub2H9bqvrl7YlwAyqzX3HrVJoSFybNgzVpxKmi4Q61AbV0Uv6uOKidt86seDSHHUdlVSzjjKEnXtwUWuliwQDZHdq6//HvKCz6pIZKNb3WMtcyGA/musrRDDOTtT717N/w1LLKhqzLaRAjfCaO+Yjgti6tWUDWtKDXs78NA+StbvzSf1qfPFZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e3PinIc82dAHlPEuM1U4LyElGVw7ZZVzvNtc8RDW7P8=; b=C0hBLq1rmgoL9t22tzQob/YdukRnIdoECd+ccWCoabURIOr9AQotivFS5UI/Vq1wwhUbKUC1NdLDtaQ1FWtm9gA2gs8AF6A81nvj/3Gxpvil8YANsLoT2XsleudeCYEonyMPvh0/440NEwp6JnNVP/XGiTXN6Q72Gt+fR8ncciI= Received: from BN8PR04CA0018.namprd04.prod.outlook.com (2603:10b6:408:70::31) by BL0PR12MB4915.namprd12.prod.outlook.com (2603:10b6:208:1c9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Sat, 22 Oct 2022 16:00:46 +0000 Received: from BN8NAM11FT045.eop-nam11.prod.protection.outlook.com (2603:10b6:408:70:cafe::67) by BN8PR04CA0018.outlook.office365.com (2603:10b6:408:70::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23 via Frontend Transport; Sat, 22 Oct 2022 16:00:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT045.mail.protection.outlook.com (10.13.177.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5746.16 via Frontend Transport; Sat, 22 Oct 2022 16:00:46 +0000 Received: from AUS-LX-PAGRIMES.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 22 Oct 2022 11:00:42 -0500 From: "Paul" To: CC: Zhiguang Liu , Ray Ni , Gua Guo , Qi Zhang , Rahul Kumar Subject: [PATCH v1 0/2] Uninitialized local variable. Date: Sat, 22 Oct 2022 09:00:08 -0700 Message-ID: <20221022160010.632-1-paul.grimes@amd.com> X-Mailer: git-send-email 2.24.0.windows.2 MIME-Version: 1.0 Return-Path: Paul.Grimes@amd.com X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT045:EE_|BL0PR12MB4915:EE_ X-MS-Office365-Filtering-Correlation-Id: 37a9dcba-46dd-41c4-d210-08dab446950f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NVvOz5eVsWE1KvYGmEe1MmGwWoqvzatZuLdbwyofVFpOOcq+TATMKO0mMe+6Hx8ADNhhbZgpzyO9tWJUcVy7OzrRiOGvdx6sLU8PkQOIkE8x3E9sDgWHYYaL52uY4XJxHa7WRN+ogfIxCgMZFQKY+jxCkVSPFA7hnUkaB3TIIxcRGcmBU1F33qmrWFjmpFniYlJ03pnJmB9X71DUyc/ZPFsQHmrnTHeb7RegXJkz9C/rH/uPMNwm/gnXK0X8lWPwRZQRSlj1CWyd9Bj/VU1xwIU3NSdxue4HEBZ8SFFBEMjNBMLbmmPjNFSbWEjmYJBxEsJoI/vckN43+yPdc7I4gu54lvoY/ESsp9ghNVntvrHnJVY5PzZlp6oaB0IXi2l4MOXKWva+LJZpoyR0Cd7Xy9iudQ85PJLefLhKAqwUvneUm0PF8wUScYo9QimwYDQ6FLfCoj9N3Bnd3kApS/ssi88GnkwQQ2RKzNM1Md6O1OPP1h2cMMRf8NnQKQQdSCUGokMuknDRE+G8aTLFrom7rxbui2jkm+E+Cs82t2qKvuOknvNzBaCRZYNlbtjX72l0nJon1M5Aq5D9ri9IrH+AFhjiBT74/SRU+WWEW5GKf3m0Kkx4LEqzvf/VPEG4IcjwnrBPSR9XBiWwJz0D5+8YwK36vHNIMeSLyvq16AVJNfCAbrM1n0t91ytkQ7roEbN1T5L/8oNZxsA6U5btVF2+3A/114S9nI471BvHSXUASPCqW17DxcEmjGwYLJ3/x+Qz3Zw5C82J8nFIJhrKBCReKY5vFa/Ld/MUmLRnUPixhHOJsyUiZuIgupIXXUTwKalUFk9o36nncLUD7IAT6yEUyA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(346002)(396003)(39850400004)(136003)(376002)(451199015)(46966006)(40470700004)(36840700001)(6916009)(8936002)(5660300002)(54906003)(70206006)(70586007)(8676002)(4326008)(316002)(26005)(6666004)(41300700001)(7696005)(36756003)(36860700001)(186003)(82740400003)(356005)(81166007)(82310400005)(426003)(336012)(2876002)(40480700001)(40460700003)(2616005)(47076005)(2906002)(16526019)(1076003)(4744005)(86362001)(83380400001)(478600001)(966005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2022 16:00:46.7586 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 37a9dcba-46dd-41c4-d210-08dab446950f X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT045.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4915 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Paul Grimes The variable 'VariableSize' is used prior to being initialized. This patch initializes the variable. https://github.com/pbgrimes/edk2/tree/fix_uninitialized_local_variable Cc: Zhiguang Liu Cc: Ray Ni Cc: Gua Guo Cc: Qi Zhang Cc: Rahul Kumar Paul Grimes (2): MdeModulePkg: BdsDxe: Uninitialized local variable. SecurityPkg: OpalPasswordDxe: uninitialized local variable. MdeModulePkg/Universal/BdsDxe/BdsEntry.c | 2 ++ SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c | 1 + 2 files changed, 3 insertions(+) --=20 2.24.0.windows.2