Fix segfault related to huge files mapping