aboutsummaryrefslogtreecommitdiff
path: root/src/sync.h
diff options
context:
space:
mode:
authorCasey Carter <cacarter@microsoft.com>2023-06-21 17:14:53 -0700
committerCasey Carter <cacarter@microsoft.com>2023-07-24 22:33:40 -0700
commit07c59eda00841aafaafd8fd648217b56b1e907c9 (patch)
tree20b3614e414238378396a55083a27a52fd6f49b4 /src/sync.h
parent6a473373d4953cabbb219eae8b709150a45796e6 (diff)
downloadbitcoin-07c59eda00841aafaafd8fd648217b56b1e907c9.tar.xz
Don't derive secure_allocator from std::allocator
Affects both secure_allocator and zero_after_free_allocator. Giving the C++ Standard Committee control of the public interface of your type means they will break it. C++23 adds a new `allocate_at_least` member to `std::allocator`. Very bad things happen when, say, `std::vector` uses `allocate_at_least` from `secure_allocator`'s base to allocate memory which it then tries to free with `secure_allocator::deallocate`. Drive-by: Aggressively remove facilities unnecessary since C++11 from both allocators to keep things simple.
Diffstat (limited to 'src/sync.h')
0 files changed, 0 insertions, 0 deletions