mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user