https://git.reactos.org/?p=reactos.git;a=commitdiff;h=76910c358f7197a6b8e28…
commit 76910c358f7197a6b8e283ea267faf7b5c1812ff
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sat Mar 30 23:06:27 2019 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Mon Apr 1 11:38:32 2019 +0200
[EXT2] Correctly zero memory before using it
---
drivers/filesystems/ext2/src/memory.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/filesystems/ext2/src/memory.c
b/drivers/filesystems/ext2/src/memory.c
index 8915dfeccb..cf569f40cd 100644
--- a/drivers/filesystems/ext2/src/memory.c
+++ b/drivers/filesystems/ext2/src/memory.c
@@ -2072,9 +2072,9 @@ Ext2ParseRegistryVolumeParams(
USHORT i, j, k;
- RtlZeroMemory(Codepage, CODEPAGE_MAXLEN);
- RtlZeroMemory(Prefix, HIDINGPAT_LEN);
- RtlZeroMemory(Suffix, HIDINGPAT_LEN);
+ RtlZeroMemory(Codepage, sizeof(WCHAR) * CODEPAGE_MAXLEN);
+ RtlZeroMemory(Prefix, sizeof(WCHAR) * HIDINGPAT_LEN);
+ RtlZeroMemory(Suffix, sizeof(WCHAR) * HIDINGPAT_LEN);
RtlZeroMemory(MountPoint, sizeof(USHORT) * 4);
RtlZeroMemory(DrvLetter, sizeof(CHAR) * 4);