projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c8719ee
)
[EXT2] Correctly zero memory before using it
author
Hervé Poussineau
<hpoussin@reactos.org>
Sat, 30 Mar 2019 22:06:27 +0000
(23:06 +0100)
committer
Hervé Poussineau
<hpoussin@reactos.org>
Mon, 1 Apr 2019 09:38:32 +0000
(11:38 +0200)
drivers/filesystems/ext2/src/memory.c
patch
|
blob
|
history
diff --git
a/drivers/filesystems/ext2/src/memory.c
b/drivers/filesystems/ext2/src/memory.c
index
8915dfe
..
cf569f4
100644
(file)
--- a/
drivers/filesystems/ext2/src/memory.c
+++ b/
drivers/filesystems/ext2/src/memory.c
@@
-2072,9
+2072,9
@@
Ext2ParseRegistryVolumeParams(
USHORT i, j, k;
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);
RtlZeroMemory(MountPoint, sizeof(USHORT) * 4);
RtlZeroMemory(DrvLetter, sizeof(CHAR) * 4);