From nobody Wed May 15 02:19:41 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+74040+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+74040+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1618317436; cv=none; d=zohomail.com; s=zohoarc; b=QaXhg3TR6h8BgcXQyn9r7XyO8DJ5uP/XQTAdLF5ysL/SUdDlKJewkPhPLMeiExeCWURjWF+rLReLm1Vrg/JzpZUqEFEkEdQhBUcoYny3il0b3ao0MhLjdgdkJ4fxQ8GQkim0n+54vc/BNXEnMGB4rdVU21Kugyk/ecKQl5Hp1SQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618317436; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=YHLVgNZ0O4gPHxRauVTyZa4tTSlVP2WBoXI3awow8RA=; b=l/oCOlomjKK94ZcQcLOk03opmM6Aa4xvXbqSVF8A2uyAdilT4A6NPLIawITMKicM8lAwJcCXY7I9UH70p+47XPn+DHr/ed2buFBVSPEXO+/f3DSOLEiOMZSwTJpmTJ+9BQaNgp4WF+NEvRtqOe43ipQvGePs9jQDgtIE1zHJHVo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+74040+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1618317436309983.343816124134; Tue, 13 Apr 2021 05:37:16 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id rxyFYY1788612xzUIfaC8pyE; Tue, 13 Apr 2021 05:37:15 -0700 X-Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by mx.groups.io with SMTP id smtpd.web09.8456.1618317430015137466 for ; Tue, 13 Apr 2021 05:37:10 -0700 X-Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FKQ6q0C14zlXjT; Tue, 13 Apr 2021 20:35:15 +0800 (CST) X-Received: from HGH1000039998.huawei.com (10.184.68.188) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Tue, 13 Apr 2021 20:36:57 +0800 From: "wenyi,xie via groups.io" To: , , , CC: , Subject: [edk2-devel] [PATCH EDK2 v1 1/1] SecurityPkg/FvReportPei: remove redundant sizeof Date: Tue, 13 Apr 2021 20:33:37 +0800 Message-ID: <1618317217-112644-2-git-send-email-xiewenyi2@huawei.com> In-Reply-To: <1618317217-112644-1-git-send-email-xiewenyi2@huawei.com> References: <1618317217-112644-1-git-send-email-xiewenyi2@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.184.68.188] X-CFilter-Loop: Reflected Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,xiewenyi2@huawei.com X-Gm-Message-State: DVuynxtOyOd4EuhNYYhh2BL1x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1618317435; bh=NKSVx1vUlUM/64ayFWm1tGPOTg4CxTh8gD9xqOjHuqc=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=LGEitneClPZ3h84ee6O1N2W/fcAv1G/qtaFJ52vczyF4SHlB68N1MnEMXhBhBo9y5tH m39HQN8Cufa+lEV8na8Kahx5mdhatJb2qA85DJM2Ej08q0Ssd05yOxoyl8PFHdhop5nSM SA/vLYehAdcTHuS3yImVMRPaB4shqxPKYsk= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3333 In function InstallPreHashFvPpi, when calculatuing the size of struct HASH_INFO=EF=BC=8Csizeof is used twice. Cc: Jiewen Yao Cc: Jian J Wang Cc: Laszlo Ersek Signed-off-by: Wenyi Xie Reviewed-by: Laszlo Ersek --- SecurityPkg/FvReportPei/FvReportPei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SecurityPkg/FvReportPei/FvReportPei.c b/SecurityPkg/FvReportPe= i/FvReportPei.c index d709760ea3ce..e82413e090c0 100644 --- a/SecurityPkg/FvReportPei/FvReportPei.c +++ b/SecurityPkg/FvReportPei/FvReportPei.c @@ -67,7 +67,7 @@ InstallPreHashFvPpi ( HASH_INFO *HashInfo; =20 PpiSize =3D sizeof (EDKII_PEI_FIRMWARE_VOLUME_INFO_PREHASHED_FV_PPI) - + sizeof (sizeof (HASH_INFO)) + + sizeof (HASH_INFO) + HashSize; =20 PreHashedFvPpi =3D AllocatePool (PpiSize); --=20 2.20.1.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 (#74040): https://edk2.groups.io/g/devel/message/74040 Mute This Topic: https://groups.io/mt/82063417/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-