mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Merge branch 'maint-0.4.4'
This commit is contained in:
commit
404c224c71
2 changed files with 6 additions and 0 deletions
4
changes/ticket40125
Normal file
4
changes/ticket40125
Normal file
|
@ -0,0 +1,4 @@
|
|||
o Testing (onion service v2):
|
||||
- Fix a rendezvous cache unit test that was triggering an underflow on the
|
||||
global rend cache allocation. Fixes bug 40125; bugfix on
|
||||
0.2.8.1-alpha.
|
|
@ -974,11 +974,13 @@ test_rend_cache_entry_free(void *data)
|
|||
|
||||
// Handles NULL descriptor correctly
|
||||
e = tor_malloc_zero(sizeof(rend_cache_entry_t));
|
||||
rend_cache_increment_allocation(rend_cache_entry_allocation(e));
|
||||
rend_cache_entry_free(e);
|
||||
|
||||
// Handles non-NULL descriptor correctly
|
||||
e = tor_malloc_zero(sizeof(rend_cache_entry_t));
|
||||
e->desc = tor_malloc(10);
|
||||
rend_cache_increment_allocation(rend_cache_entry_allocation(e));
|
||||
rend_cache_entry_free(e);
|
||||
|
||||
/* done: */
|
||||
|
|
Loading…
Add table
Reference in a new issue