From nobody Sun May 19 03:12:51 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+68609+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+68609+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1607559693; cv=none; d=zohomail.com; s=zohoarc; b=T53LtVSVu77XVdR3XnPPHTo0umYJ/1HsA61TxZQTNCh1KO2WHdM0YYy/8ofoi1y9FD0OQJ500D7MAkfFIlGh6aPizqs/Bja++N8GhwF2gDni1/Ao6MSprDKst2apZ9UqnX5b/nFQlZgKgRqnUtO0cAJIoPuh1WsNOB0iOBBGyqg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607559693; h=Content-Type:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=ywtBZXMqQUFw819F+CFdOY8ARTze83rMgSJ0l2248gQ=; b=YiFteI88vhl5F/aH5NQI87haiZx8dMb1v4l+qoegQIKV2ozR2V3IgGRUEaKpN1CsYCCCLmL265Sqsmso93XUr2mNbRciQNaJAStYXlq2mjcQcX3WpRegfvVlZhkM6VgmM7HhuW3uLtS4oC4aUP/q2OhGPoC/p+dQ0B8nYU/RgfI= 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+68609+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1607559693415222.44234493389592; Wed, 9 Dec 2020 16:21:33 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id RqUDYY1788612xoGjZcC4Mat; Wed, 09 Dec 2020 16:21:32 -0800 X-Received: from us-smtp-delivery-162.mimecast.com (us-smtp-delivery-162.mimecast.com [63.128.21.162]) by mx.groups.io with SMTP id smtpd.web12.5722.1607559691797242894 for ; Wed, 09 Dec 2020 16:21:32 -0800 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2171.outbound.protection.outlook.com [104.47.59.171]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-548-FFMb0tx3OHWTdFxMHihfTg-1; Wed, 09 Dec 2020 19:21:29 -0500 X-MC-Unique: FFMb0tx3OHWTdFxMHihfTg-1 X-Received: from AT5PR8401MB0882.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7426::19) by AT5PR8401MB1298.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7423::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.13; Thu, 10 Dec 2020 00:21:27 +0000 X-Received: from AT5PR8401MB0882.NAMPRD84.PROD.OUTLOOK.COM ([fe80::94db:bf7:511a:2675]) by AT5PR8401MB0882.NAMPRD84.PROD.OUTLOOK.COM ([fe80::94db:bf7:511a:2675%11]) with mapi id 15.20.3654.012; Thu, 10 Dec 2020 00:21:27 +0000 From: "Anbazhagan, Baraneedharan via groups.io" To: "devel@edk2.groups.io" CC: "gaoliming@byosoft.com.cn" , "jian.j.wang@intel.com" , "hao.a.wu@intel.com" Subject: [edk2-devel] MdeModulePkg: Fix SetMem parameter in OnigurumaUefiPort Thread-Topic: MdeModulePkg: Fix SetMem parameter in OnigurumaUefiPort Thread-Index: AdbOfgg5mTlXZoptT7KkNYLdwrRGWQ== Date: Thu, 10 Dec 2020 00:21:27 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [66.135.191.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 569c42f1-eaf3-4d30-d99f-08d89ca18925 x-ms-traffictypediagnostic: AT5PR8401MB1298: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1850 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: HKUWWn1kqgM8u+AT0X7pCMVWkoC1d/H8jImOCieXBMR/e9HpxyrWQ0UlLcfOXDO5Z/UaCmNh7F9GfoALaY6IWVL9+y/eRYvCcxnLNTSCjJ64UHq6cgjcYyE9pjx9spJLu5+qpJwHI2uhiuba/EiAAkXkxuYDx6/92AD1y6wN28s6S0kglCqp6y6RSf9wblI5aeNjBqcgcBpZl5Np7zR86MkNnULfWvCwpqMWRtkQ5zUv2MkgfdbDn1Hg3iDcPo1zCpMuALAnV3ozh+0XDqdRPzmsbzDlR2ZpXunyIQiUnr+4LeQXJ8zWJ1XSa8Om/sdJ4PVyWLwRuWRDJ2CK9+c5q/dRQhC3WtF5/qPvkSpB8PpirykEq5l3MP6aF3jOM3i4tTGDjDC1YvZjQEa2v4C1Zw== x-ms-exchange-antispam-messagedata: =?us-ascii?Q?cgVfKY5cb0W1L+1/jhJpIVEaLexw++x+NU7YAOwTLTAY5bQkFZlXWmJ1uqLM?= =?us-ascii?Q?yV7AuCLcBV3mt9riGcPEtaESIVGQZISUtu6hLh1U2NfrnI/SB/C3/zuzcFUE?= =?us-ascii?Q?9+s8Btv194tQKH4kmbWO/gXyyOe1Qgmdv6G0ls1Az3hjran5u55G0VufxWpY?= =?us-ascii?Q?pmuEqPkq7im7wrgR2RqAsQ/W9EP/fBXq8jPaZ0hCGRPq2AY9oDhZ1mgJnams?= =?us-ascii?Q?ElVtmou9P9IIqGi9blq1nmvIXqZfwHvLF2pWJpAZnOwnvZiWsDcjkWUv7az0?= =?us-ascii?Q?PR0tX4ZLUNH8E+3gGRWDkSxr8jK00xuJLXrRz5B2eP1iNGQNyyKSR+N/Twu4?= =?us-ascii?Q?HjjbiNaDq8V/A3LzQQEccqK7uozh+29RbFiIIhs9HvN8nztC+qqxnPQ4CSuR?= =?us-ascii?Q?Kn24s0byybAHBzNyMDd2yONx790pOJSqHnHKI+RjQ56EaUCHsk9mWdI4RKgh?= =?us-ascii?Q?qbJG/anQUD461txqh247zt4IVsve8dyyp3IGRjUUPUHwlWc2nmHQaqwEk6B2?= =?us-ascii?Q?hgY0CacLXm5A4CG4qvZSE4vUrKdsxon2npPhKAvSc8izueIgvbnzV+5cEHg6?= =?us-ascii?Q?tugNyjOhxATNZk2F7zXnJ70pTIaJ2kJbDSagk8yCAKpOS+XiXbM0EpWPdP2Q?= =?us-ascii?Q?TPVH0gIqBjgPtajy/j2Je3dC5fHiaDWnLmmSdCzL1Qe8c9FSLMK85c93BNX9?= =?us-ascii?Q?dBBYWEvhem+XDbtnrtOp7DUUnZqSx1lEpG/2UMFGbUBPVVKf0EPCDf6mEqao?= =?us-ascii?Q?8kQpXtHQIIw3xzPAGwtBSJhf7HxXKHosIUqv345cnqzQfGfg4p/NiuzEp1A2?= =?us-ascii?Q?kIgVIkbu/BATSifVxu/bA6jqrBZHw2pQ2fhxSsXsV4IE5Qr+xOQXPXaRkj4Q?= =?us-ascii?Q?9qKucEBemghj4B3dEx/vRDIBs41f0wY9LKZ4XnLyBxUQwGpDssnfH3JN82+2?= =?us-ascii?Q?5XUZX4AjuRpP7MkbvCn1NRGr3mUnGi3IlyrC9asSYog=3D?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: hp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AT5PR8401MB0882.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 569c42f1-eaf3-4d30-d99f-08d89ca18925 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Dec 2020 00:21:27.6162 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ca7981a2-785a-463d-b82a-3db87dfc3ce6 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ww586tsomvac0BLlKqbHFZu6P2fKfxJCa+XUZed/B+GKEEF+S4wOPrMlAvIRGCFkYFyh7mG6iMrzbxx+DvkaGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AT5PR8401MB1298 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: hp.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,anbazhagan@hp.com X-Gm-Message-State: Tt2GAK3NVMMrscTJfy9aQsIYx1787277AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_AT5PR8401MB08822F0171FDAC847243F731BACB0AT5PR8401MB0882_" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1607559692; bh=+w6cK9SHJgG1AHb3Ot4hhPiI6ejEPKegbdphCv5AhQQ=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=rsDfkWbI6gYikTDWueSy6cVGcTPONl+E92QG9drw6E7aRjGN6hgeR4NIEH4T8qTS3Nn X5ZY2mxZqO85TrkdokJ0yLSL+T30ni15EOHkF93Tdyb+lsEanOyJ+en9dTMgyP4mMnRXD xdeF+re0hLThZw64w1mBv/Xw3MwiRnF60tQ= X-ZohoMail-DKIM: pass (identity @groups.io) --_000_AT5PR8401MB08822F0171FDAC847243F731BACB0AT5PR8401MB0882_ 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=3D3085 Coding error in converting memset call to SetMem - Length and Value is not swapped on calling SetMem Signed-off-by: Baraneedharan Anbazhagan --- MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.= c b/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c index 2b2b0d420d..9aa7b0a68e 100644 --- a/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c +++ b/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c @@ -93,6 +93,6 @@ void* memcpy (void *dest, const void *src, unsigned int c= ount) void* memset (void *dest, char ch, unsigned int count) { - return SetMem (dest, ch, count); + return SetMem (dest, count, ch); } -- 2.29.2.windows.3 -=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 (#68609): https://edk2.groups.io/g/devel/message/68609 Mute This Topic: https://groups.io/mt/78843697/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- --_000_AT5PR8401MB08822F0171FDAC847243F731BACB0AT5PR8401MB0882_ Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id= = =3D3085

 

Coding error in converting memset call to SetMem - = Length and Value

is not swapped on calling SetMem

 

Signed-off-by: Baraneedharan Anbazhagan <anbazha= gan@hp.com>

---

MdeModulePkg/Universal/RegularExpressionDxe/Oniguru= maUefiPort.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)<= /o:p>

 

diff --git a/MdeModulePkg/Universal/RegularExpressi= onDxe/OnigurumaUefiPort.c b/MdeModulePkg/Universal/RegularExpressionDxe/Oni= gurumaUefiPort.c

index 2b2b0d420d..9aa7b0a68e 100644

--- a/MdeModulePkg/Universal/RegularExpressionDxe/O= nigurumaUefiPort.c

+++ b/MdeModulePkg/Universal/RegularExpressionDxe/O= nigurumaUefiPort.c

@@ -93,6 +93,6 @@ void* memcpy (void *dest, const v= oid *src, unsigned int count)

 void* memset (void *dest, char ch, unsigned i= nt count)

{

-  return SetMem (dest, ch, count);=

+  return SetMem (dest, count, ch);=

}

--

2.29.2.windows.3

 

_._,_._,_

Gr= oups.io Links:

You receive all messages sent to this group.

Vie= w/Reply Online (#68609) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [importer@patchew.org]

_._,_._,_
=20 --_000_AT5PR8401MB08822F0171FDAC847243F731BACB0AT5PR8401MB0882_--