merge from dev

This commit is contained in:
daan 2020-09-04 14:21:33 -07:00
commit 97f56b1e08
5 changed files with 28 additions and 11 deletions

View file

@ -176,6 +176,8 @@ static void double_free2();
static void corrupt_free();
static void block_overflow1();
static void invalid_free();
static void test_aslr(void);
int main() {
@ -185,7 +187,8 @@ int main() {
// double_free1();
// double_free2();
// corrupt_free();
//block_overflow1();
// block_overflow1();
// test_aslr();
invalid_free();
void* p1 = malloc(78);
@ -287,3 +290,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]);
}