projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e797f0
)
[MOUNTMGR] Fix out of bounds write
author
Mark Jansen
<mark.jansen@reactos.org>
Sat, 23 Nov 2019 15:23:28 +0000
(16:23 +0100)
committer
Mark Jansen
<mark.jansen@reactos.org>
Sat, 23 Nov 2019 15:24:56 +0000
(16:24 +0100)
CORE-16530
drivers/filters/mountmgr/mountmgr.c
patch
|
blob
|
history
diff --git
a/drivers/filters/mountmgr/mountmgr.c
b/drivers/filters/mountmgr/mountmgr.c
index
aa15262
..
b79bb0f
100644
(file)
--- a/
drivers/filters/mountmgr/mountmgr.c
+++ b/
drivers/filters/mountmgr/mountmgr.c
@@
-42,6
+42,7
@@
KEVENT UnloadEvent;
LONG Unloading;
static const WCHAR Cunc[] = L"\\??\\C:";
+#define Cunc_LETTER_POSITION 4
/*
* @implemented
@@
-1106,7
+1107,7
@@
MountMgrMountedDeviceArrival(IN PDEVICE_EXTENSION DeviceExtension,
/* Start checking all letters that could have been associated */
for (Letter = L'D'; Letter <= L'Z'; Letter++)
{
- CSymLink.Buffer[LETTER_POSITION] = Letter;
+ CSymLink.Buffer[
Cunc_
LETTER_POSITION] = Letter;
InitializeObjectAttributes(&ObjectAttributes,
&CSymLink,