Why not just do a binary search through the entire 256TB virtual memory space, finding the largest memory address that doesn't segfault? :-)