From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@hp.com header.s=mimecast20180716 header.b=jAk7qJjA; spf=pass (domain: hp.com, ip: 63.128.21.162, mailfrom: anbazhagan@hp.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hp.com; s=mimecast20180716; t=1607559691; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=G+Ip8LWWa2FlaKa010NuVfxqiDKPY188oRG1dC499uE=; b=jAk7qJjAwTZW0tcBnjX7F/Q5q8GLFEY3p62dScEN6TpJrM16CYIwjWhsz2Bim2yTfEm1+n 1O0E6FAAGq5nPmdq+OHirJd7Qq7PTsvUYLcuiXDz5SPXd6orqz5089+zZN89S/D3eZ8Tpm XQ3pgq2bLHcr8gDHN5aB4153Zv+79Sc= 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 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 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" To: "devel@edk2.groups.io" CC: "gaoliming@byosoft.com.cn" , "jian.j.wang@intel.com" , "hao.a.wu@intel.com" Subject: 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: BCL:0 x-microsoft-antispam-message-info: HKUWWn1kqgM8u+AT0X7pCMVWkoC1d/H8jImOCieXBMR/e9HpxyrWQ0UlLcfOXDO5Z/UaCmNh7F9GfoALaY6IWVL9+y/eRYvCcxnLNTSCjJ64UHq6cgjcYyE9pjx9spJLu5+qpJwHI2uhiuba/EiAAkXkxuYDx6/92AD1y6wN28s6S0kglCqp6y6RSf9wblI5aeNjBqcgcBpZl5Np7zR86MkNnULfWvCwpqMWRtkQ5zUv2MkgfdbDn1Hg3iDcPo1zCpMuALAnV3ozh+0XDqdRPzmsbzDlR2ZpXunyIQiUnr+4LeQXJ8zWJ1XSa8Om/sdJ4PVyWLwRuWRDJ2CK9+c5q/dRQhC3WtF5/qPvkSpB8PpirykEq5l3MP6aF3jOM3i4tTGDjDC1YvZjQEa2v4C1Zw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AT5PR8401MB0882.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(346002)(366004)(396003)(136003)(39860400002)(376002)(316002)(26005)(8936002)(5660300002)(7696005)(186003)(33656002)(86362001)(52536014)(54906003)(83380400001)(6916009)(76116006)(9686003)(55016002)(2906002)(66476007)(4326008)(66946007)(66556008)(4744005)(64756008)(966005)(66446008)(6506007)(478600001)(71200400001)(8676002);DIR:OUT;SFP:1102 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 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA62A171 smtp.mailfrom=anbazhagan@hp.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: hp.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_AT5PR8401MB08822F0171FDAC847243F731BACB0AT5PR8401MB0882_" --_000_AT5PR8401MB08822F0171FDAC847243F731BACB0AT5PR8401MB0882_ Content-Type: text/plain; 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 --- 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 --_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 - L= ength and Value

is not swapped on calling SetMem

 

Signed-off-by: Baraneedharan Anbazhagan <anbazhag= an@hp.com>

---

MdeModulePkg/Universal/RegularExpressionDxe/Onigurum= aUefiPort.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

 

diff --git a/MdeModulePkg/Universal/RegularExpressio= nDxe/OnigurumaUefiPort.c b/MdeModulePkg/Universal/RegularExpressionDxe/Onig= urumaUefiPort.c

index 2b2b0d420d..9aa7b0a68e 100644

--- a/MdeModulePkg/Universal/RegularExpressionDxe/On= igurumaUefiPort.c

+++ b/MdeModulePkg/Universal/RegularExpressionDxe/On= igurumaUefiPort.c

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

 void* memset (void *dest, char ch, unsigned in= t count)

{

-  return SetMem (dest, ch, count);<= /p>

+  return SetMem (dest, count, ch);<= /p>

}

--

2.29.2.windows.3

 

--_000_AT5PR8401MB08822F0171FDAC847243F731BACB0AT5PR8401MB0882_--