merge from dev

This commit is contained in:
Daan Leijen 2021-02-24 15:53:26 -08:00
commit 4e643b6d31
2 changed files with 20 additions and 11 deletions

View file

@ -44,7 +44,7 @@ int main() {
padding_shrink();
various_tests();
large_alloc();
test_mt_shutdown();
//test_mt_shutdown();
//fail_aslr();
mi_stats_print(NULL);
return 0;
@ -230,5 +230,5 @@ void fail_aslr() {
size_t sz = (4ULL << 40); // 4TiB
void* p = malloc(sz);
printf("pointer p: %p: area up to %p\n", p, (uint8_t*)p + sz);
*(int*)0x7FFFFFFF000 = 0; // should segfault
*(int*)0x5FFFFFFF000 = 0; // should segfault
}