forked from boostorg/container
throw_bad_alloc in expand_bwd_test_allocator::allocation_command in case of a bad request
This commit is contained in:
1 parent
49a028bfe9
commit
8b27fefb8e
1 file changed
+1
@@ -137,6 +137,7 @@ class expand_bwd_test_allocator
|
||||
if(m_allocations == 0){
|
||||
if((m_offset + limit_size) > m_size){
|
||||
assert(0);
|
||||
throw_bad_alloc();
|
||||
}
|
||||
++m_allocations;
|
||||
reuse = 0;
|
||||
|
||||
Reference in new issue
Block a user