From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web09.6702.1607563709739241333 for ; Wed, 09 Dec 2020 17:28:31 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 10 Dec 2020 09:28:23 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: , References: In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gTWRlTW9kdWxlUGtnOiBGaXggU2V0TWVtIHBhcmFtZXRlciBpbiBPbmlndXJ1bWFVZWZpUG9ydA==?= Date: Thu, 10 Dec 2020 09:28:26 +0800 Message-ID: <004101d6ce93$c22f9160$468eb420$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIiRNkMI3q8qf2Ex7U998BkoidT0qlYnb8Q Content-Type: multipart/alternative; boundary="----=_NextPart_000_0042_01D6CED6.D0536DA0" Content-Language: zh-cn ------=_NextPart_000_0042_01D6CED6.D0536DA0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao =20 =B7=A2=BC=FE=C8=CB: bounce+27952+68609+4905953+8761045@groups.io =B4=FA=B1=ED Anbazhagan, Baraneedharan via groups.io =B7=A2=CB=CD=CA=B1=BC=E4: 2020=C4=EA12=D4=C210=C8=D5 8:21 =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io =B3=AD=CB=CD: gaoliming@byosoft.com.cn; jian.j.wang@intel.com; hao.a.wu@in= tel.com =D6=F7=CC=E2: [edk2-devel] MdeModulePkg: Fix SetMem parameter in Oniguruma= UefiPort =20 Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3085 =20 Coding error in converting memset call to SetMem - Length and Value is not swapped on calling SetMem =20 Signed-off-by: Baraneedharan Anbazhagan > --- MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) =20 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 count) =20 void* memset (void *dest, char ch, unsigned int count) { - return SetMem (dest, ch, count); + return SetMem (dest, count, ch); } =20 --=20 2.29.2.windows.3 =20 ------=_NextPart_000_0042_01D6CED6.D0536DA0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

 

=

=B7=A2=BC=FE= =C8=CB: bounce+27952+68609+4905953+8761045@groups.io <bounc= e+27952+68609+4905953+8761045@groups.io> =B4=FA=B1=ED Anbazhagan, Baraneedharan via groups.io
=B7=A2=CB=CD=CA=B1=BC=E4:<= /span> 2020=C4=EA12= = =D4=C210=C8=D5 8:21
=CA=D5=BC=FE=C8=CB: de= vel@edk2.groups.io
=B3=AD=CB=CD:= gaoliming@byosoft.com.cn; jian.j.wang@intel.com; hao.a.= wu@intel.com
=D6=F7=CC=E2: [edk2-devel] MdeModulePkg: Fix SetMem parameter in OnigurumaU= efiPort

 

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

 

<= p class=3DMsoNormal>Coding error in converting memset ca= ll to SetMem - Length and Value

<= span lang=3DEN-US>is not swapped on calling SetMem

 

Signed-off-by: Baraneedharan Anbazhagan &l= t;anbazhagan@hp.com>=

---

MdeModulePkg/Universal/RegularExpr= essionDxe/OnigurumaUefiPort.c | 2 +-

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

 

diff --git a/MdeModulePkg/U= niversal/RegularExpressionDxe/OnigurumaUefiPort.c b/MdeModulePkg/Universal/= RegularExpressionDxe/OnigurumaUefiPort.c

index 2b2b0d420d..9aa7b0a68e 100644

--- a/MdeModulePkg/Univers= al/RegularExpressionDxe/OnigurumaUefiPort.c

+++ b/MdeModulePkg/Universal/RegularExpres= sionDxe/OnigurumaUefiPort.c

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

 

&= nbsp;void* memset (void *dest, char ch, unsigned int count)

{

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

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

}

 

--

2.29.2.windows.3=

 

------=_NextPart_000_0042_01D6CED6.D0536DA0--