From f28084ddda02886a97943e36099c4a523f72af0b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 7 Mar 2011 23:18:07 -0500 Subject: [PATCH] munge the debug_lock signature before freeing it: it might help us catch use-after-free --- evthread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/evthread.c b/evthread.c index d9c54787..a8b2534f 100644 --- a/evthread.c +++ b/evthread.c @@ -156,6 +156,7 @@ debug_lock_free(void *lock_, unsigned locktype) } lock->lock = NULL; lock->count = -100; + lock->signature = 0x12300fda; mm_free(lock); }