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:
Hermès Bélusca-Maïto 2013-05-04 19:28:36 +00:00
parent 9c6d52c545
commit 554df0ecbf

View file

@ -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();