MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_check_padding

Function mi_check_padding

3rd/mimalloc-2.0.9/src/alloc.c:276–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276static void mi_check_padding(const mi_page_t* page, const mi_block_t* block) {
277 size_t size;
278 size_t wrong;
279 if (!mi_verify_padding(page,block,&size,&wrong)) {
280 _mi_error_message(EFAULT, "buffer overflow in heap block %p of size %zu: write after %zu bytes\n", block, size, wrong );
281 }
282}
283
284// When a non-thread-local block is freed, it becomes part of the thread delayed free
285// list that is freed later by the owning heap. If the exact usable size is too small to

Callers 3

_mi_free_block_mtFunction · 0.85
_mi_free_blockFunction · 0.85
mi_freeFunction · 0.85

Calls 2

mi_verify_paddingFunction · 0.85
_mi_error_messageFunction · 0.85

Tested by

no test coverage detected