diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-03-07 23:18:07 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-03-07 23:18:07 -0500 |
commit | f28084ddda02886a97943e36099c4a523f72af0b (patch) | |
tree | 24ebacb3062d31bf86a6df7c8368a0bed2ca5d02 /evthread.c | |
parent | b4a29c0a0fbd25a2de8a16b3049677fb2b8e1645 (diff) | |
download | libevent-f28084ddda02886a97943e36099c4a523f72af0b.tar.gz |
munge the debug_lock signature before freeing it: it might help us catch use-after-free
Diffstat (limited to 'evthread.c')
-rw-r--r-- | evthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -156,6 +156,7 @@ debug_lock_free(void *lock_, unsigned locktype) } lock->lock = NULL; lock->count = -100; + lock->signature = 0x12300fda; mm_free(lock); } |