| 1000 | } |
| 1001 | |
| 1002 | mi_decl_nodiscard void* mi_new_reallocn(void* p, size_t newcount, size_t size) { |
| 1003 | size_t total; |
| 1004 | if mi_unlikely(mi_count_size_overflow(newcount, size, &total)) { |
| 1005 | mi_try_new_handler(false); // on overflow we invoke the try_new_handler once to potentially throw std::bad_alloc |
| 1006 | return NULL; |
| 1007 | } |
| 1008 | else { |
| 1009 | return mi_new_realloc(p, total); |
| 1010 | } |
nothing calls this directly
no test coverage detected