diff --git a/test/main-override-static.c b/test/main-override-static.c index f738c517..82feb37c 100644 --- a/test/main-override-static.c +++ b/test/main-override-static.c @@ -12,6 +12,8 @@ static void double_free2(); static void corrupt_free(); static void block_overflow1(); static void invalid_free(); +static void test_aslr(void); + int main() { mi_version(); @@ -21,6 +23,7 @@ int main() { // double_free2(); // corrupt_free(); // block_overflow1(); + // test_aslr(); invalid_free(); void* p1 = malloc(78); @@ -121,3 +124,10 @@ static void corrupt_free() { malloc(SZ); } } + +static void test_aslr(void) { + void* p[256]; + p[0] = malloc(378200); + p[1] = malloc(1134626); + printf("p1: %p, p2: %p\n", p[0], p[1]); +}