]> granicus.if.org Git - libevent/commitdiff
munge the debug_lock signature before freeing it: it might help us catch use-after...
authorNick Mathewson <nickm@torproject.org>
Tue, 8 Mar 2011 04:18:07 +0000 (23:18 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 8 Mar 2011 04:18:07 +0000 (23:18 -0500)
evthread.c

index d9c54787a993611e6aabcf40f1f7b97cefc12303..a8b2534f32855a0a7432809295acd85ba9830547 100644 (file)
@@ -156,6 +156,7 @@ debug_lock_free(void *lock_, unsigned locktype)
        }
        lock->lock = NULL;
        lock->count = -100;
+       lock->signature = 0x12300fda;
        mm_free(lock);
 }