summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/RegularExpressionDxe
diff options
context:
space:
mode:
authorBaraneedharan Anbazhagan <anbazhgan@hp.com>2020-12-09 10:16:52 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-12-14 02:11:33 +0000
commit1f304300ffe64d47efc2f4d845da3081fd2b86a4 (patch)
treee28e99db9a6fc14e6f67b5f232317c522596c45a /MdeModulePkg/Universal/RegularExpressionDxe
parentd4633b36b94f7b4a1f41901657cbbff452173d35 (diff)
downloadedk2-1f304300ffe64d47efc2f4d845da3081fd2b86a4.tar.gz
edk2-1f304300ffe64d47efc2f4d845da3081fd2b86a4.tar.bz2
edk2-1f304300ffe64d47efc2f4d845da3081fd2b86a4.zip
MdeModulePkg: Fix SetMem parameter in OnigurumaUefiPort
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>
Diffstat (limited to 'MdeModulePkg/Universal/RegularExpressionDxe')
-rw-r--r--MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c2
1 files changed, 1 insertions, 1 deletions
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)
void* memset (void *dest, char ch, unsigned int count)
{
- return SetMem (dest, ch, count);
+ return SetMem (dest, count, ch);
}