use 2-6TiB area for hints to accommodate pre-windows8 better

This commit is contained in:
Daan Leijen 2021-02-24 15:49:43 -08:00
parent e64474e06b
commit 5f596056c9
2 changed files with 16 additions and 11 deletions

View file

@ -42,7 +42,7 @@ int main() {
padding_shrink();
various_tests();
//test_mt_shutdown();
//test_aslr();
//fail_aslr();
mi_stats_print(NULL);
return 0;
}
@ -215,5 +215,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
}