mirror of
https://github.com/boostorg/container.git
synced 2025-08-01 21:44:27 +02:00
throw_bad_alloc in expand_bwd_test_allocator::allocation_command in case of a bad request
This commit is contained in:
@@ -137,6 +137,7 @@ class expand_bwd_test_allocator
|
|||||||
if(m_allocations == 0){
|
if(m_allocations == 0){
|
||||||
if((m_offset + limit_size) > m_size){
|
if((m_offset + limit_size) > m_size){
|
||||||
assert(0);
|
assert(0);
|
||||||
|
throw_bad_alloc();
|
||||||
}
|
}
|
||||||
++m_allocations;
|
++m_allocations;
|
||||||
reuse = 0;
|
reuse = 0;
|
||||||
|
Reference in New Issue
Block a user