MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / mi_theap_reallocn

Function mi_theap_reallocn

system/lib/mimalloc/src/alloc.c:411–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411static 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

Callers 2

mi_reallocnFunction · 0.85
mi_heap_reallocnFunction · 0.85

Calls 2

mi_count_size_overflowFunction · 0.85
mi_theap_reallocFunction · 0.85

Tested by

no test coverage detected