mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Fix implicit overflow in rendcache tests
This commit is contained in:
parent
4e34ef87a4
commit
b23a0465f1
@ -659,11 +659,11 @@ test_rend_cache_increment_allocation(void *data)
|
||||
// Test when there are too many allocations
|
||||
rend_cache_total_allocation = SIZE_MAX-1;
|
||||
rend_cache_increment_allocation(2);
|
||||
tt_int_op(rend_cache_total_allocation, OP_EQ, SIZE_MAX);
|
||||
tt_u64_op(rend_cache_total_allocation, OP_EQ, SIZE_MAX);
|
||||
|
||||
// And again
|
||||
rend_cache_increment_allocation(2);
|
||||
tt_int_op(rend_cache_total_allocation, OP_EQ, SIZE_MAX);
|
||||
tt_u64_op(rend_cache_total_allocation, OP_EQ, SIZE_MAX);
|
||||
|
||||
done:
|
||||
(void)0;
|
||||
|
Loading…
Reference in New Issue
Block a user