Skip to content

Commit

Permalink
Fix underflow in rend_cache/free_all test.
Browse files Browse the repository at this point in the history
We already fixed these in #40099 and #40125.

This patch fixes #40126.  Bugfix on 0.2.8.1-alpha.
  • Loading branch information
nmathewson committed Sep 17, 2020
1 parent 47f1d19 commit 7945e07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changes/ticket40126
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
o Testing (onion service v2):
- Fix another rendezvous cache unit test that was triggering an underflow on the
global rend cache allocation. Fixes bug 40126; bugfix on
0.2.8.1-alpha.
1 change: 1 addition & 0 deletions src/test/test_rendcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,7 @@ test_rend_cache_free_all(void *data)
one->parsed = desc_one;
desc_one->timestamp = time(NULL) + TIME_IN_THE_PAST;
desc_one->pk = pk_generate(0);
rend_cache_increment_allocation(rend_cache_entry_allocation(one));
strmap_set_lc(rend_cache, "foo1", one);

rend_cache_free_all();
Expand Down

0 comments on commit 7945e07

Please sign in to comment.