mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:12:56 +00:00
fix buffer overflow
svn path=/trunk/; revision=18491
This commit is contained in:
parent
3e68f60244
commit
fd7c8f26a8
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ ScStartService(PSCM_START_PACKET StartPacket)
|
||||||
|
|
||||||
lpService->Arguments = HeapAlloc(GetProcessHeap(),
|
lpService->Arguments = HeapAlloc(GetProcessHeap(),
|
||||||
HEAP_ZERO_MEMORY,
|
HEAP_ZERO_MEMORY,
|
||||||
StartPacket->Size);
|
StartPacket->Size * sizeof(WCHAR));
|
||||||
if (lpService->Arguments == NULL)
|
if (lpService->Arguments == NULL)
|
||||||
return ERROR_OUTOFMEMORY;
|
return ERROR_OUTOFMEMORY;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue