Last active
July 15, 2022 00:22
-
-
Save JJL772/de1f9818a01ddf9e9ab4450d863b9f03 to your computer and use it in GitHub Desktop.
Tiny library to override reallocarray for valgrind
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile with: gcc -o libmimalloc-proxy.so -shared mimalloc-stub.c | |
#include <stdlib.h> | |
#include <stddef.h> | |
void* reallocarray(void* ptr, size_t nmemb, size_t size) { | |
return realloc(ptr, nmemb*size); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment