Fix handling of mappings over file size.