[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/maint-0.2.9] Define HeapEnableTerminationOnCorruption if the headers don't.



commit 15cc41e6649009ccd92d927850f918b962ee35d6
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri May 19 06:44:13 2017 -0400

    Define HeapEnableTerminationOnCorruption if the headers don't.
    
    MSDN says that it's always going to be 1, and they're usually pretty
    accurate about that.
    
    Fixes a bug in 21953.
---
 src/or/main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/or/main.c b/src/or/main.c
index 2de8ed29a..187b255bf 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -3426,6 +3426,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.



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits