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

Function block_overflow1

3rd/mimalloc-2.0.9/test/main-override-static.c:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static void block_overflow1() {
77 uint8_t* p = (uint8_t*)mi_malloc(17);
78 p[18] = 0;
79 free(p);
80}
81
82// The double free samples come ArcHeap [1] by Insu Yun (issue #161)
83// [1]: https://arxiv.org/pdf/1903.00503.pdf

Callers

nothing calls this directly

Calls 1

mi_mallocFunction · 0.85

Tested by

no test coverage detected