1 2 3 4 5 6 7 8 9 10 11 12
#include <stdbool.h> #include <string.h> bool check_dylib_interposing() { const char* x = strdup("123"); const char* y = strdup("456"); return ( (strcmp(x, "hello") == 0) && (strcmp(y, "hello") == 0) ); }