mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 14:34:09 +00:00
[CONSRV]
Hack: To try to uncover a heap corruption in CONSRV, use our own heap instead of the (default) CSR heap, so that we won't corrupt it and obtain strange bugs thrown by memory allocation in csrsrv. Thanks to Aleksandar Andrejevic, aka. [TheFlash] for having seen that. See CORE-7157 for more information. svn path=/trunk/; revision=58926
This commit is contained in:
parent
9c6d52c545
commit
554df0ecbf
1 changed files with 5 additions and 1 deletions
|
@ -481,7 +481,11 @@ ConSrvDisconnect(PCSR_PROCESS Process)
|
|||
CSR_SERVER_DLL_INIT(ConServerDllInitialization)
|
||||
{
|
||||
/* Initialize the memory */
|
||||
ConSrvHeap = RtlGetProcessHeap();
|
||||
// HACK: To try to uncover a heap corruption in CONSRV, use our own heap
|
||||
// instead of the CSR heap, so that we won't corrupt it.
|
||||
// ConSrvHeap = RtlGetProcessHeap();
|
||||
ConSrvHeap = RtlCreateHeap(HEAP_GROWABLE, NULL, 0, 0, NULL, NULL);
|
||||
if (!ConSrvHeap) return STATUS_NO_MEMORY;
|
||||
|
||||
ConSrvInitConsoleSupport();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue