Files
tor/changes
Nick Mathewson d8cfa2ef4e Avoid free()ing from an mmap on corrupted microdesc cache
The 'body' field of a microdesc_t holds a strdup()'d value if the
microdesc's saved_location field is SAVED_IN_JOURNAL or
SAVED_NOWHERE, and holds a pointer to the middle of an mmap if the
microdesc is SAVED_IN_CACHE.  But we weren't setting that field
until a while after we parsed the microdescriptor, which left an
interval where microdesc_free() would try to free() the middle of
the mmap().

This patch also includes a regression test.

This is a fix for #10409; bugfix on 0.2.2.6-alpha.
2013-12-16 13:06:00 -05:00
..
2012-07-31 11:49:20 -04:00
2012-07-06 08:02:14 -04:00
2012-07-20 09:50:19 -04:00
2012-07-31 10:16:03 -04:00
2012-08-03 11:16:13 -04:00
2012-08-31 11:35:47 -04:00
2012-09-11 13:13:07 -04:00
2012-10-23 21:35:30 -04:00
2012-10-23 13:49:48 -04:00
2012-11-12 23:47:21 -05:00
2013-08-21 11:28:58 -04:00
2013-10-08 12:06:06 -04:00