Dealing with Tor hardening on Windows properly
While gk is waiting (for something?) in #12426 (moved), Tor needs its security mitigations to be corrected according to https://blogs.microsoft.com/microsoftsecure/2009/08/06/setting-sdl-memory-related-requirements-before-your-application-starts/ before the release. So, adding
HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0);
after https://gitweb.torproject.org/tor.git/tree/src/or/main.c?h=release-0.3.0#n3570 and changing
if (setdeppolicy) setdeppolicy(1); /* PROCESS_DEP_ENABLE */
with
if (setdeppolicy) setdeppolicy(3); /* PROCESS_DEP_ENABLE | PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION */
will do the trick.