From: Nick Mathewson Date: Tue, 8 Mar 2011 04:18:07 +0000 (-0500) Subject: munge the debug_lock signature before freeing it: it might help us catch use-after... X-Git-Tag: release-2.1.1-alpha~301 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f28084ddda02886a97943e36099c4a523f72af0b;p=libevent munge the debug_lock signature before freeing it: it might help us catch use-after-free --- 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); }