by lgg · 2y ago · 0 comments
static void *(*nextmalloc)(size_t) = NULL;
if (!nextmalloc)
nextmalloc = dlsym(RTLD_NEXT, "malloc");
}
Somehow the fact that the optimization is incorrectly missed here feels appropriate ;-)the other bug of course is that it's not thread safe