commit d34fa32ece2179c18f8aeae0026d2b452956842f
parent 553cd7f0c5a45c0afdd6badb5170a59bf4ab3c71
Author: Nick Mathewson <nickm@torproject.org>
Date: Fri, 19 May 2017 06:49:04 -0400
Merge branch 'ticket21953_029'
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/or/main.c b/src/or/main.c
@@ -3667,6 +3667,9 @@ tor_main(int argc, char *argv[])
int result = 0;
#ifdef _WIN32
+#ifndef HeapEnableTerminationOnCorruption
+#define HeapEnableTerminationOnCorruption 1
+#endif
/* On heap corruption, just give up; don't try to play along. */
HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0);
/* Call SetProcessDEPPolicy to permanently enable DEP.