Explorar o código

clobber connections with different number than we clobber circuits

Roger Dingledine %!s(int64=15) %!d(string=hai) anos
pai
achega
4f8b36a1e2
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 4 0
      ChangeLog
  2. 1 1
      src/or/connection.c

+ 4 - 0
ChangeLog

@@ -2,6 +2,10 @@ Changes in version 0.2.2.7-alpha - 2009-??-??
   o Minor bugfixes:
     - Fix compilation on OSX 10.3, which has a stub mlockall() but
       hides it. Bugfix on 0.2.2.6-alpha.
+    - After we free an internal connection structure, overwrite it
+      with a different memory value than we use for overwriting a freed
+      internal circuit structure. Should help with debugging. Suggested
+      by bug 1055.
 
 
 Changes in version 0.2.2.6-alpha - 2009-11-19

+ 1 - 1
src/or/connection.c

@@ -423,7 +423,7 @@ _connection_free(connection_t *conn)
     connection_or_remove_from_identity_map(TO_OR_CONN(conn));
   }
 
-  memset(mem, 0xAA, memlen); /* poison memory */
+  memset(mem, 0xCC, memlen); /* poison memory */
   tor_free(mem);
 }