MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / safety_check_fail

Function safety_check_fail

deps/jemalloc/src/safety_check.c:10–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10void safety_check_fail(const char *format, ...) {
11 char buf[MALLOC_PRINTF_BUFSIZE];
12
13 va_list ap;
14 va_start(ap, format);
15 malloc_vsnprintf(buf, MALLOC_PRINTF_BUFSIZE, format, ap);
16 va_end(ap);
17
18 if (safety_check_abort == NULL) {
19 malloc_write(buf);
20 abort();
21 } else {
22 safety_check_abort(buf);
23 }
24}

Callers 2

Calls 2

malloc_vsnprintfFunction · 0.70
malloc_writeFunction · 0.70

Tested by

no test coverage detected