mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:11:42 +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;
|
LONG Unloading;
|
||||||
|
|
||||||
static const WCHAR Cunc[] = L"\\??\\C:";
|
static const WCHAR Cunc[] = L"\\??\\C:";
|
||||||
|
#define Cunc_LETTER_POSITION 4
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
|
@ -1106,7 +1107,7 @@ MountMgrMountedDeviceArrival(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
/* Start checking all letters that could have been associated */
|
/* Start checking all letters that could have been associated */
|
||||||
for (Letter = L'D'; Letter <= L'Z'; Letter++)
|
for (Letter = L'D'; Letter <= L'Z'; Letter++)
|
||||||
{
|
{
|
||||||
CSymLink.Buffer[LETTER_POSITION] = Letter;
|
CSymLink.Buffer[Cunc_LETTER_POSITION] = Letter;
|
||||||
|
|
||||||
InitializeObjectAttributes(&ObjectAttributes,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
&CSymLink,
|
&CSymLink,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue