mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Overwrite allocated buffer to catch errors when deallocating in case a control block was overwritten.
This commit is contained in:
@@ -417,6 +417,7 @@ bool test_aligned_allocation(Allocator &a)
|
||||
|
||||
if(((std::size_t)ptr & (j - 1)) != 0)
|
||||
return false;
|
||||
std::memset(ptr, 0xFF, i - 1);
|
||||
a.deallocate(ptr);
|
||||
if(!a.all_memory_deallocated() || !a.check_sanity()){
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user