mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[MOUNTMGR] Fix out of bounds write
CORE-16530
This commit is contained in:
parent
9e797f0ae7
commit
d4a0549eb6
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue