]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Fix SetMem parameter in OnigurumaUefiPort
authorBaraneedharan Anbazhagan <anbazhgan@hp.com>
Wed, 9 Dec 2020 16:16:52 +0000 (10:16 -0600)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 14 Dec 2020 02:11:33 +0000 (02:11 +0000)
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3085

Coding error in converting memset call to SetMem - Length and Value
is not swapped on calling SetMem

Signed-off-by: Baraneedharan Anbazhagan <anbazhagan@hp.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c

index 2b2b0d420d896b4b130ee8a0fb0d8305f6663682..9aa7b0a68eefdd203db0b8f3befcc2c98d20ac09 100644 (file)
@@ -93,6 +93,6 @@ void* memcpy (void *dest, const void *src, unsigned int count)
 \r
 void* memset (void *dest, char ch, unsigned int count)\r
 {\r
-  return SetMem (dest, ch, count);\r
+  return SetMem (dest, count, ch);\r
 }\r
 \r