| 409 | } |
| 410 | |
| 411 | static void* mi_theap_reallocn(mi_theap_t* theap, void* p, size_t count, size_t size) mi_attr_noexcept { |
| 412 | size_t total; |
| 413 | if (mi_count_size_overflow(count, size, &total)) return NULL; |
| 414 | return mi_theap_realloc(theap, p, total); |
| 415 | } |
| 416 | |
| 417 | |
| 418 | // Reallocate but free `p` on errors |
no test coverage detected